Error while Installing APK - android

Today, I have updated my android studio from gradle 2.2.1 to 2.14.1
from that onwards my studio is unable install any apk files in the device.
it showing the error.
\app\build\outputs\apk\app-debug.apk does not exist on disk.
Error while Installing APK.
But on the explorer the directory contains apk file. I have tried clean, rebuild & restared the studio also, but unable to fix. please help me.

click on option to solve your error

I solved my problem by changing gradle version to previous state. in
File-->project structure-->Project -->Gradle version & Android plugin version.

Related

Android Studio 3.5 Cause: buildOutput.apkData must not be null Clean & Rebuild already tried

After I've updated Android Studio 3.4 to 3.5 and wanted to build a Signed APK, however I get the error :
Cause: buildOutput.apkData must not be null Error
I've already tried to Clean & Make the Project and to Clean & Rebuild the Project, with no success.
I am using Android Gradle 3.5.0 & Gradle Version 5.4.1
This issue happens after update my Android studio v3.4 to v3.5
Now, it is working fine
I fixed this issue by deleting debug/output.json and release/output.json files
otherwise change your apk destination folder path.
Android Studio 3.5
compilesdkVersion 28
apk generating working
option 1 - change the destination folder of the apk generated and generate apk again.
option 2 - delete the output.json file under release folder and generate apk again.
It solved my problem. I hope it will help you too.
Manually delete the build directory and rebuild, That worked for me
I dont know why the issue was occurring but changing the
destination folder of output apk
fixed the issue.
It's working on AS 3.4.2 version. I've tried everything (Clean & Make the Project and to Clean & Rebuild) and downgraded to 3.4.2 at last.
This issue might be fixed in the 3.6 release.
https://androidstudio.googleblog.com/2019/07/android-studio-36-canary-5-available.html
Delete the contents of the build folders (existing *.apk and output.json):-
AndroidProject\app\build\outputs\apk\androidTest\debug\
AndroidProject\app\build\outputs\apk\debug\
AndroidProject\app\release\
And then rebuild the system by:-
File -> Sync Project with Gradle Files

Unknown attribute for known attributes in xml files

I recently installed Android Studio on my Desktop running Ubuntu 17.10. However, when I open any Android Studio Project or even create a new Project, while editing XML files, it wrongly displays an "unknown attribute" error. Normally, I wouldn't care, but this causes Android Studio to not give any suggestions for attributes which I need.
What I've tried:
Invalidating cache
Deleting the .iml file and rebuilding project
Rebuilding and cleaning project several times
Deleting gradle's cache
Updating Android Studio (Current Release is Android Studio 3.1)
Here is a screenshot of what's happening
Try doing a gradle sync. It should resolve the problem
I´ve tryed all the solutions but the only thing that worked for me was 4gus71n's answer.
Deleting the C:\Users.AndroidStudio3.2\system\caches folder solved my problem.
Link to his answer: https://stackoverflow.com/a/53160674/6568421
Use project's SDK not Android's SDK. You can edit SDK Location in local.properties file
I had faced similar issues and all the above also did not worked for me.
If all else failed, do a clean install of android studio. You need to do a clean installation because if you just uninstall and install again, some of the files still remains in your system. It did not work for me when i just uninstall and install android studio. The clean install worked for me and I believe it should solve most of the problems.
I faced this error probably because i installed an entire android project but I am not very sure what is the exact error that caused this problem.
For clean installation, you can look at this links for windows and mac
How to completely uninstall Android Studio from windows(v10)?
How to completely uninstall Android Studio on Mac?

Android Studio 2.3 -Following version Android7.0 device APK installation failed

My Android Studio project can run debug and generate a apk.
But this .apk can only be installed success on Android7.0 device,and the same file can't install on Following version Android7.0 device.
When I made the following encountered this problem.
Android Studio upgrade to version 2.3,
gradle upgrade to version 3.3
jre:1.8( no change )
Seems no error log ,in addition to the installation failed(where can i find this log?? e...)
How can I fix it ,thank you.
when android studio updata just finished the upgrade modules properties the following
I made the following Settings,solve;

Android studio AssertionError: Don't invoke waitForSmartMode from inside read action in dumb mode

I have been facing this problem since i updated to Android Studio 2.1 RC . A quick google search shows that the problem is being faced by developers using Android Studio 2.1. The issue appeared in April and a solution have not been found yet.
I had the same issue. I fixed it with:
1. Build, Clean project.
2. Build, Build APK.
3. Build, Generate Signed APK
I ended up needing to delete the projects cache directory. You can just delete the .gradle directory so that it can be regenerated.

android studio gradle sync error

After trying a preview version that gave me odd errors, i just did a fresh install of Android Studio 1.1.0 on Ubuntu Linux.
I also removed the preferences directory to start from scratch.
Now even with new projects gradle sync fails with this error and i cannot find the cause or other informations that can give me hints about the cause:
Error:Cause: org.jetbrains.plugins.gradle.tooling.ModelBuilderService: Provider org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl not found
Does anybody knows how to fix this?
Solved by deleting the $HOME/.gradle folder.
I guess executing the preview version messed up something there.
I had to delete the .AndroidStudioPreview, .gradle/ and the .android. Basically it's like to uninstall android studio, but it worked for me.

Categories

Resources