android studio canary -2中找不到版本代码

时间:2017-06-03 11:24:24

标签: android version manifest

  

当即时运行申请我在android studio 3.0 canary-2

中得到关注
Error:E:\PublicServer_Share\Extra\app\build\intermediates\instant-run
support\debug\slice_2\AndroidManifest.xml:2 attribute 'android:versionCode' 
not found
Error:failed processing manifest
Error:E:\PublicServer_Share\Extra\app\build\intermediates\instant-run-
support\debug\slice_9\AndroidManifest.xml:2 attribute 'android:versionCode' 
not found
Error:failed processing manifest
Error:Execution failed for task 
':app:transformDexWithInstantRunSlicesApkForDebug'.
com.android.ide.common.process.ProcessException: Failed to execute aapt

2 个答案:

答案 0 :(得分:4)

禁用即时运行。在File -> Settings -> Build, Execution, Deployment内。这将允许您以Canary版本运行您的应用程序。

答案 1 :(得分:1)

运行 Gradle->清洁,然后重试