简体   繁体   English

Android Studio Run配置错误

[英]Android Studio Run configuration error

I don't know if this is the right place to ask this question I have no one else to turn to for help ... My android studio was working fine a couple of days back and run configuration was also ok but now i am having issue with it ... I am getting a cross ( x ) sign over the android icon please have a look at the images below 我不知道这是否是问这个问题的正确地方,我没有其他人可以寻求帮助...我的android studio几天前工作正常,运行配置也还可以,但是现在我有了问题...我在android图标上看到一个叉号(x),请看下面的图片

A cross on the little android icon 十字架上的小android图标

在此处输入图片说明


Also when I try to edit the run configuration I see a error at the bottom please have a look at this image 另外,当我尝试编辑运行配置时,我在底部看到一个错误,请查看此图像

Error visible in the edit run configuration dialogue 在编辑运行配置对话框中可见错误

在此处输入图片说明

It looks like you are trying to build a release apk. 您似乎正在尝试构建发行版APK。 If you do this you need to sign it. 如果这样做,则需要签名。 If that's the case check out this: 如果是这种情况,请检查以下内容:

https://developer.android.com/studio/publish/app-signing.html https://developer.android.com/studio/publish/app-signing.html

If not you need to switch your configuration to debug. 如果不是,则需要将配置切换为调试。

Change the build variant from the bottom left panel to debug and you should be able to run it fine from Android studio. 将构建变体从左下面板更改为debug ,您应该可以在Android Studio中正常运行它。 It will use the default debug signing configuration in this case. 在这种情况下,它将使用默认的调试签名配置。

You cannot run a release build variant directly unless you specify the signing config explicitly under bulidTypes - > release 除非您在bulidTypes - > release下显式指定签名配置,否则无法直接运行release build变体。

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

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