简体   繁体   English

从Android Studio启动的应用程序停止工作

[英]Launch app from Android Studio stopped to work

There is very weird issue... One time I opened my project and noticed that I don't have opportunity to launch app from studio... Triangle sing cover with black color like it disable 有一个很奇怪的问题...一次我打开我的项目时,发现我没有机会从工作室启动应用程序...三角形唱着黑色的盖子,就像它禁用了

在此处输入图片说明

But if I build the apk file and install it with adb command adb install -r path_to_apk it does work. 但是,如果我生成apk文件并使用adb命令adb install -r path_to_apk安装它,则它确实可以工作。

I have already tried to delete and download new android studio, but nothing changed... 我已经尝试删除并下载新的android studio,但是什么都没有改变...

And one more, if I am connecting my device and trying to attach debugger to android process so, android studio doesn't see my device as well as virtual device... 再者,如果我正在连接设备并尝试将调试器连接到android进程,则android studio不会看到我的设备以及虚拟设备...

What I need to check? 我需要检查什么? It look like some studio configuration broke or I don't know 好像某些工作室配置坏了,或者我不知道

Fell free to ask 随意问

My plugins 我的插件

在此处输入图片说明

My configuration 我的配置

在此处输入图片说明

转到android studio中可用的文件设置选项,然后检查所需的必要插件,然后确保已安装插件,然后检查项目。

Actually I forgot to switch build module to the app (next to launch triangle you have some options, so you need to choose app ) 实际上我忘了将构建模块切换到应用程序(在启动三角形旁边,您有一些选择,因此您需要选择app

And then I got sdk location issue 然后我得到SDK位置问题

I fixed it with help of this answer 我在这个答案的帮助下修复了它

intelliJ IDEA 13 error: please select Android SDK 智慧IDEA 13错误:请选择Android SDK

My Problem: "please select Android SDK", But everything is okey :( -> I think one of IntelliJ file was crashed (after blue screen of death) 我的问题:“请选择Android SDK”,但是一切都很好:(->我认为IntelliJ文件之一崩溃了(在蓝屏死机之后)

My resolution: 我的决心:

File -> Settings -> Android SDK -> Android SDK Location Edit -> Next, Next (Android SDK is up to date.), Finished 文件->设置-> Android SDK-> Android SDK位置编辑->下一步,下一步(Android SDK是最新的。),已完成

... and crashed file was repaired! ...并且崩溃的文件已修复!

I hope this will help! 我希望这个能帮上忙!

The problem "Error: Please select Android SDK" can sometimes happen with Android Studio 3.0, when downloading new build tools. 下载新的构建工具时,Android Studio 3.0有时可能会出现“错误:请选择Android SDK”问题。

A temporary workaround is to change the versionCode or versionName in the app/build.gradle, then do a gradle sync, then change it back and gradle sync. 临时的解决方法是更改​​app / build.gradle中的versionCodeversionName ,然后执行gradle同步,然后将其更改回并进行gradle同步。 See: Error: Please select Android SDK in Android Studio 2.0 请参阅: 错误:请在Android Studio 2.0中选择Android SDK

A possible issue is that build.gradle could have the wrong platform version for targetSdkVersion . 一个可能的问题是build.gradle可能对错误的平台版本targetSdkVersion It might not be picking up the latest Manifest file. 它可能未获取最新的清单文件。

Please select Android SDK 请选择Android SDK

Is not being reported because it cannot find the SDK, but rather because it cannot find the platform version it needs from build.gradle . 尚未报告,因为它找不到SDK,而是因为它无法从build.gradle找到所需的平台版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM