Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

version code not found in 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
like image 507
Ishvar Kikani Avatar asked Apr 13 '26 23:04

Ishvar Kikani


2 Answers

Disable Instant Run. Inside File -> Settings -> Build, Execution, Deployment. This will allow you to run your app in the Canary version.

like image 116
ザヘド Avatar answered Apr 16 '26 13:04

ザヘド


Run Gradle->Clean and try again

like image 36
Pavel Avatar answered Apr 16 '26 12:04

Pavel