My android application using Kotlin is throwing this exception when I try to Run \'app\' in the emulator o in my cellphone. When I build my project it runs well, with no err
I tried above multiple solutions but nothing has happened then I found this this and worked for me
deleting debug/output.json and release/output.json solved my problem
Now I am able to generate apk
Usually this issue happen on updating android Studio V3.4 to V3.5.
Try to delete debug/output.json
and release/output.json
files.
Then Try these steps:
Step 1: Clean Project(Build > Clean Project)
Step 2: Rebuild Project(Build > Rebuild Project)
This issue is happens usually when you are running multiple android studio window with different projects.
The solution is
please ref screen shot attached
In my case build and launch project with different build configs was successful. But generating signed apk throws error Cause: buildOutput.apkData must not be null
on the other hand apk was generated and Build Output toggle view prints BUILD SUCCESSFUL
. Manual installation ends with message App not installed
. My fault was using compileSdkVersion 'android-P'
and after changing to compileSdkVersion 28
all goes well.
1- Delete all generated app bundles (.aab) and APKs for all variants.
2- Delete the build folder
3- clean project
Just change the Apk release/debug location.
EX:
/home/sanaebadi/Desktop
after change :
/home/sanaebadi/apk