I'm getting the next error, I have tried: deleting the app, cleaning the project, also allowing the 'Unknown sources' in the phone settings but i get the same error with all the apps, even the new apps that i try to install just to test.
Also in the Console i get this error:
11/27 17:19:48: Launching app
$ adb push C:\Users\ozkr2805\AndroidStudioProjects\Test\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/ink.test
$ adb shell pm install -t -r "/data/local/tmp/ink.test"
Error while accessing provider:com.rscja.secapp.provider.authcode
java.lang.IllegalStateException: Could not find provider: com.rscja.secapp.provider.authcode
at com.android.commands.pm.Pm$Command.execute(Pm.java:173)
at com.android.commands.pm.Pm.main(Pm.java:252)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:276)
pkg: /data/local/tmp/ink.test
Success
Error while Installing APK
The device i have is: Chainway C71 Handheld Computer, don't know if this helps.
Thank you for any advice!
I'm having the same problem. I have re-installed android studio and done a factory reset on the device, but it still fails. After flashing my smartphone the problem is fixed.
Related
I am trying to uninstall an old version of my app, and reinstall the new version via ADB on a Lollipop Android device. These are my current steps:
adb uninstall com.company.mypackagename
adb install app-release.apk
adb shell pm list packages
The original uninstall of my old app was successful and the app disappeared from the Android 5.5 device.
The new attempt to install the upgraded app returns:
adb install app-release.apk
Performing Push Install
app-release.apk: 1 file pushed, 0 skipped. 10.7 MB/s (822124 bytes in 0.073s)
pkg: /data/local/tmp/app-release.apk
Success
but when I run a list of the packages, my new APK package is not there.
adb shell pm list packages
When I try to run it anyway:
adb shell am start -n "com.company.mypackagename/com.company.mypackagename.MainActivity"
I get:
Error: Activity class {com.company.mypackagename/com.company.mypackagename.MainActivity} does not exist.
So obviously it is not installing correctly, as it is not showing in packages and unable to run - even though it shows Success. What is the best way to troubleshoot this? Any help appreciated!
I finally found the issue!!!
I'm posting here because I spent way too much time trying to figure this out, since it wasn't giving me any error messages.
I was able to get a copy of the original APK from the deployment team and analyze their AndroidManifest.xml, and saw that the original APK package name was all lowercase: "com.company.mypackagename" but the one I was building was actually using Camel-Case "com.company.myPackageName". When I tried to install it, ADB should have given an error similar to: "Application ID Does not Match", but instead it just repeatedly gave me a response of: "Success".
Hopefully this saves someone else some time!
My ADB install does not work, it does not start or show any info. I keep getting the same error message over and over again:
18:14 Unable to run 'adb': null
18:14 '/Users/jorandob/Library/Android/sdk/platform-tools/adb start-server' failed -- run manually if necessary
If I try to start ADB manually it just doesn't show anything.
I tried so far:
Restart server
Reinstall ADB
Reinstall Android Studio
I'm on mac os X 10.11.6 and not using any special emulator.
If its helpful information, I'm using ionic.
Terminal ADB:
Jorans-iMac:~ jorandob$ adb version
Android Debug Bridge version 1.0.36
Revision 0e9850346394-android
I finally resolved my issue, it occurs if you run java and ADB at the same time.
to fix it stop all java processes in the activity monitor.
When building the app, it builds fine, but when it comes to installing the app, it's not working.
This is my log when building and trying to install the app.
10/29 20:17:47: Launching app
$ adb push C:\Users\(Removed)\AndroidStudioProjects\MyFirstApp\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.(Removed).myfirstapp
$ adb shell pm install -r "/data/local/tmp/com.example.(Removed).myfirstapp"
pkg: /data/local/tmp/com.example.(Removed).myfirstapp
android.os.TransactionTooLargeException
Error: Could not access the Package Manager. Is the system running?
$ adb shell pm uninstall com.example.(Removed).myfirstapp
Unknown failure (Failure)
Error while Installing APK
The (Removed)'s are my computers name(Not actually, just don't want to spread its real name on the internet)
Now before you go and answer "Unlock your phone!" or "Type adb stop-server", I will list you what I have tried so far.
Restarted the ADB server
UNLOCKED my phone
Restarted my phone
Restarted Android Studio
Restarted my laptop
"Clean build" the project
ADB devices does show my device(can browse it's files in the explorer)
Turned on/off the "Instant Run" thing
My code is the Hello World when creating a new project or activity, nothing changed(Not even the IDE(Fresh Install)). I would love it if someone would help me answer this question as for all the other answers have to do with an emulator(Which none of the answers worked).
I'm getting this error when i'm lunching my app:
Installation failed with message INSTALL_FAILED_UID_CHANGED.
It is possible that this issue is resolved by uninstalling an existin
version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
I clicked 'OK' but then i'm getting this log message:
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.team.saver.app"
pkg: /data/local/tmp/com.team.saver.app
Failure [INSTALL_FAILED_UID_CHANGED]
DEVICE SHELL COMMAND: pm uninstall com.team.saver.app
Unknown failure (Failure)
i'v managed to overcome it by replacing the appId, but i need to keep the current app id and not replaced it.
i also tried deleting the package with adb and did not got response at all from the shell:
adb shell rm -rf com.team.saver.app
also tried to restart the device
But still cant find a solution, any help would be great, thanx!
Try to install android studio with proper installation of jdk .It will not generate errors if all paths are set ok.
Change you Old SDK version to latest upgrade version and then clean the project and run it again. It may solve the problem .
Running cordova emulate android gives the following error-
Error: Failed to install apk to emulator: Error executing "adb -s emulator-5554 install -r "C:/work/projects/cordova/projectName/platforms/android/build/outputs/apk/android-debug.apk"":
The error message is not actually correct because the new apk is deployed to the emulator (i have performed minor changes and the apk is updated on emulator), but the app is not started.
When I manually run the adb command that is shown in the error message i get a windows dialog saying that adb.exe has stopped responding. No error msg on the command line. Although the app on the emulator has again updated (so installation is working) and can be manually run from the emulator.
When I copy adb version 1.0.31 (exe and two dlls) over the top of version 1.0.32 in \platform-tools it all runs as expected- loads apk and starts app, no errors, regardless of whether i use cordova commands or adb command directly.
Has anyone had this issue with adb1.0.32 and or have a work solution? I have a workaround which is to use 1.0.31, but I would like to know what the issue is.