Android Studio: Failure [install_failed_invalid_apk]
Solution 1:
In my case (I have a rooted device) and when I rooted, something happened with my permission of /data/local/tmp
and they have been changed, so adb
can't get access temp
file.
How I solved it:
- Install RootExplorer
- Create new
tmp
folder on SD card - Long press on
tmp
folder, and select "Link to this folder" (last option in menu) - Go to
/data/local/
and tap button "Create link" from bottom
Solution 2:
For those that will encounter this problem in the future just go in build.gradle and put at applicationId just put a name with a point betwen 2 words.Example: First.Test
Solution 3:
As AndroidGuy thought there was a problem in build.gradle - the gradle version ws wrong. I also have changed in the settings to use the default gradle wrapper and not the local stuff!!!
Solution 4:
I was also having this problem because of changing package name. So do check your package and sub packages names and also in manifest file where activities defined with package name.
Solution 5:
when I cd /data/local/tmp, I found my project name in the folder. So I solved the problem as follows:
- adb shell
- cd /data/local/tmp
- rm -r your project name. For example: rm com.example.pc002.intenttest1
Post a Comment for "Android Studio: Failure [install_failed_invalid_apk]"