Apk does not install on Oreo - java

I'm trying to install a signed apk (which I built with Android Studio) on a Android 8 device. The apk does not install and in the logcat of Android Studio I get the following error:
E/installd: Failed to delete /data/app/vmdl1035777424.tmp: No such file or directory
The app was never installed on the device so I cannot clear the app data. I cleaned the project and also cleared the cache in Android Studio. Other than that I'm using the v1 and v2 signature when creating the apk.
When installing (through Android Studio) the apk in debug mode it works but not when installing the signed release apk.
How can I fix this error so that the apk successfully installs on Android 8? Any help is greatly appreciated.

Maybe you need to change the sdk target to api "27" in gradle.

I had the same issue, trying to install an APK through Firebase App Distribution.
The culprit was that I had published on App Distribution the APK that is generated by Android Studio when I ask the IDE to run the app on a device or an emulator. Apparently, such an APK is unsuitable for publishing. To correctly generate an APK that can be published on App Distribution, I had to use the Build > Build Bundle(s) / APK(s) > Build APK(s) menu item from Android Studio.

Related

Android Studio, System error when i run my application

i'm running my app on android 5.1 API 22. Its too old and my app doesnt work propertly. Android studio give me this error. any application I run on andoid 5.1 give me this error
i disable instant run on android studio.
i try another phone with android 5.1.
i think problem isn't into the code, but in android studio.
this is the error:
Click ("")!
I see from the description and error log, you are not able to install the app on your device. But I am not able to get exact context of the problem you are facing.
My recommendation would be:
It is because of old debug-apk cached in your android studio. I would recommend to Build -> Clean Project -> Rebuild Project and Install Apk. This way, it will clean the old apk and rebuild new one and install it in your device.

App not Installed with not sign app after format my system

I have build an application(not sign app) from my computer system after one app build that computer system android studio corrupted after android studio corrupted i used gost and install again android studio and build new version of same app with same package name but now it is showing error App not installed what i do please help me
solution 1 :Go Build > Clean Project and then try run again
solution 2 :test your app in another device

APK files not install on my oppo a37

I made a simple app by using android studio & build both signed and unsigned apk files. Then put those files into my oppo a37 device and try to install those. But both files gave following error message.
"Unable to install because of an error in the app APK. We recommend installing only certified apps from the play store."
I already checked these APKs by using android studio emulator and both works fine...
Please help me... Thank you...
Go to Files in OPPO A37 phone and select APK icon. Then you can see your downloaded apk file. Click install:

Can't install generated APK

I've been doing an application that uses GCM api. It works perfectly well if I use eclipse to install the app in the phone. But when I export the APK file and try to install it manually in the same terminal it just says Application not installed, I tried to check LogCat but it did not help. I also tried to generate the apk from android studio but the same problem occurred.
I think the problem might be related to the libraries that I need to use in my app using GCM, because if I install it using DDMS the app size is 15 MB but the apk file generated is 2.5 MB.
I tried creating a new project but didn't help.
edit
To generate APK i right click in the project android tools -> Export unsigned application Package (In Eclipse).
With install manually i mean installing APK from internal memory instead of using USB debugging.
Thanks.
You cannot instal an APK that is unsigned. I don't know Eclipse, but I bet it does the same as Android Studio when debugging, that is it signs the APK automatically with the debug certificate and that's why it works without problems that way.
Is there an option in Eclipse to export a signed APK? Otherwise you'll have to set up something to sign your APK with a release certificate that you have made yourself.
You can read more about APK signing on this Android developer guide.

First build with AndroidStudio failed

I'm new to android programming and I'd like to use Android Studio for the start. I downloaded and installed AndroidStudio 0.8.0 on my Ubuntu 14.04 machine. I also set up java properly.
When I create a new project (as told by http://developer.android.com/training/basics/firstapp/creating-project.html) it looks like it will try to build the sample files. But then I always get this error:
/home/daniel/AndroidStudioProjects/Heimweg/app/src/main/res/drawable-xhdpi/ic_launcher.png
Error:Error: Cannot run program "/home/daniel/android/android-studio/sdk/build-tools/android-4.4W/aapt": error=2, No such file or directory
Error:Execution failed for task ':app:mergeDebugResources'.
/home/daniel/AndroidStudioProjects/Heimweg/app/src/main/res/drawable-xhdpi/ic_launcher.png: Error: Cannot run program "/home/daniel/android/android-studio/sdk/build-tools/android-4.4W/aapt": error=2, No such file or directory
How can I deal with this error? When I try to run the app it says »ADB not responding. You can wait more, or kill "adb" process manually and click "Restart"«
The Android tools need 32-bit compatibility libraries installed. I had the exact same problem, and this worked for me:
sudo apt-get install libc6-i386 lib32stdc++6 \
lib32gcc1 lib32ncurses5 lib32z1
Then restart Android Studio.
It sounds like the SDK doesn't have all of the components installed!
To remedy this, in Android Studio go to Tools->Android->Android SDK Manager
I would install the Android SDK Tools, Android SDK Platform-Tools, and the Android 4.4 files (and the others as far back as you plan on developing for)
I hope this helps!
Here's some reference with pictures if you need further assistance: http://developer.android.com/tools/help/sdk-manager.html
EDIT:
I apologize! I should have read your error more carefully. It seems that android-4.4W refers to Android Wear.
Make sure when you are creating your project that you do not have Android Wear selected under the SDK selection screen (As shown below)
Alternatively you can also open up the Android SDK Manager again and install the Wear SDK.
In the SDK Manager it is under Android 4.4W (API 20), install the SDK Manager and the two System Images

Categories

Resources