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

when instant run apply i am getting following in 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

解决方法:

禁用即时运行.内部文件 – >设置 – >构建,执行,部署.这将允许您在Canary版本中运行您的应用程序.

上一篇:java – Android:以编程方式更改App Label


下一篇:Android:在Manifest中找不到活动,但它在那里?