installing app-release.apk to phone - android

I have a problem while installing the app-release.apk to my phone (Galaxy J5 2016, Android 6.0.1).
I have developed an application using Android Studio and tried to release it to the user with the .apk file.
but unfortunately, I encounter the below problems while install:
I cannot uninstall the debug version from android studio in my
phone.
There is an error of 'Package installer has stopped' whenever
I want to install it to my phone and my friends phone.
Note that I have signed the application in android studio.

This can happen when app is not installed properly via ADB.
Go to your Phone Settings -> Apps -> Select your app and Uninstall for all users.
Try to run again from Android Studio to phone.

Related

Unable to uninstall an android app : Getting a crash message

i created an android app using Android Studio 3.1, and then installed it on a Samsung Galaxy S6 running on Android 7.0 Nougat. The problem is that i can no longer uninstall the app from my phone:
When i try to uninstall the app, i have an crash message stating that "The uninstalling program kit has crashed" ... I tried reinstalling the app from android studio, didn't work, and when i try to reinstall it using an apk, i get the same crash message.
I will be thankful if you can help me out
Looks like issue with your device settings. Another approach to uninstall the program is through adb command. Use following command:
adb uninstall <you-package-name>

Build APK getting crashed all the time after successful manual installation

After updating to Android Studio 3.0.1, my app-debug.apk crashed all the time after successful manual installation.
My application is running absolutely fine in emulator & also in the device which is connected to the PC. The only problem I got when I try to install it manually & after successful installation it's getting crashed all the time.
N.B:
I already disable Instant Run.
I build the APK through Android Studio's Build APK(S) function.
I tried to install the app-debug.apk manually in an Android Oreo Device.
In the exact same device, it runs fine when i connected it with my PC & build the app through Android Studio.
Thanks in advance.

Android Wear not able to install the app directly from Android Studio

Is the first time I try to install an Android Wear app from Android Studio.
When I try to install the app I get the dialogbox for re-install the app. Then If I press "Yes" I get the following error:
$ adb shell pm uninstall com.test.wear
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
Also, I am not able to debug.
Also I am not able to uninstall the wear app using adb.
Please give me a better solution...
I faced the same issue and it turned out that Wear Emulator need to get Play Store Services for Wear updated after being created. See "Pair a phone with the watch AVD" section here.
Once you pair your Wear Emulator, open Android Wear app > click on gear (settings) > select Wear Emulator > Select ReSync Apps
Once done, try re-running wear app from Android Studio.

Android app not installed permenantly in AVD

I work on an Android project . I compiled my application on Virtual device and it works fine but when i close the application it vanished from my device and i can't run it again. But it's shown into installed apps when i go to settings and see my apps.
I copy/paste the compiled app-debug.apk to my device and try to install it manually however it install successfully but i am not able to open it.

Error while Installing Android app on Android virtual device

I have created a small and simple android app. I tried installing it on an actual android device. But because it won't install, I created an AVD resembling my phone. I tried copying and installing app on that AVD and it still says that error. "Application xxx could not be installed on this phone".
Before I tried installing my app on the phone or AVD I following steps:
1. Exported an unsigned copy of application onto my hard-drive.
2. User jarsigner to sign the app
3. Verified with jarsigner that my app is signed properly.
4. Used zipalign to optimize the app resources.
I do not have an icon assigned to myapp but mandatory properties like version etc. have been specified properly.
I had initially developed app using 2.1 version but because of compatability issues with my phone I reverted code to compile on 1.5 and it still doesn't get installed either on AVD or my phone.
My AVD is on 2.1 though and code is compiled with 1.5.
Is there a place where I can see the logs as to why app is not getting installed. It would be really helpful.
Cheers
This can happen if you have a Debug version installed on the device already (from a USB debug session). Either do adb -d uninstall com.example.yourapp or uninstall in the Preferences->Applications screen on the phone itself.
Try using adb install to see if you get an error.
adb logcat will give you the logs from your device (phone or emulator) so you might find a stacktrace there.

Categories

Resources