Migrating eclipse project to android studio shows install error - android

I have migrated my eclipse project to Android Studio, but while running, it is giving me a dialog with the below message:
Installation failed with message Invalid File:
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\dep\dependencies.apk.
It is possible that this issue can be resolved by uninstalling an existing version of the APK,* if it is present*, and then re-installing?
When I click the ok button it shows the following session error in my run tab.
05/11 11:54:35: Launching storeTrack-storeTrack $ adb install-multiple
-r D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\dep\dependencies.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_9.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_3.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_7.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_4.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_0.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_2.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_6.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_0.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_5.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\dep\dependencies.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_8.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_9.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_8.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_4.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_2.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_1.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_3.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_1.apk
D:\andro\stockApp\storeTrack\build\intermediates\split-apk\debug\slices\slice_6.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_5.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\intermediates\split-apk\debug\slices\slice_7.apk
D:\Anil\android_projects\storeTrack\storeTrack\build\outputs\apk\storeTrack-debug.apk $ adb shell pm uninstall com.c2info.storetrack
DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs
What could be the problem?

Uninstall it from the device.
Perform clean install on the device.

Related

Solve error Android Studio: Installation Failed with message null

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.

How to solve Android error on lunching app in android studio?

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 .

cordova- adb 1.0.32 gives error "Failed to install apk to emulator" where adb1.0.31 succeeds

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.

Installing com.google.android.gms on emulator, packet exist error

I'm trying to install com.google.android.gms v 3.0.27 on my android 4.2 emulator . But when I run adb install. it execute some minuets and the say:
INSTALLATION_FAILURE_PACKAGE_EXIST
the emulator by defualt has version 2... of this package but I want to update it. What should I do?
EDIT
I tried to uninstall. After executing command, CMD just show the help of adb unistall.
I tried to install it on another emulator, Now I get this error:
Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
This will reinstall it:
adb install -r com.google.android.gms.apk
You will have to uninstall the the old version first. You can do this with ADB:
adb uninstall com.google.android.gms
The emulator by default doesn't has those files, this is one of the reasons that Google Map API V2 doesn't work on the emulator environment. So you can just create a new AVD and install you .apk file there or use the uninstall option as mentioned.

Running the app in AVD without opening the Eclipse

I hav created Calcy app in Eclipse. It is running in Emulator properly.
But i want to run it using AVD manager .
the command for installing the app is "adb install Calcy.apk"
but it is giving the message that
C:\Android\android-sdk\platform-tools>adb install Calcy.apk
252 KB/s (39547 bytes in 0.153s)
pkg: /data/local/tmp/Calcy.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
How to resolve this...
If you do not want to uninstall first using adb uninstall your.package.name, then try adb install -r Calcy.apk
Please first remove this app from Emulator then run "adb install Calcy.apk"
Failure [INSTALL_FAILED_ALREADY_EXISTS]
this means the app already installed in the emulator. You can go into Application manager tool and uninstall app from emulator. then again run this command and you will be able to install it.
You need to uninstall the already installed app. then this command will work
you can also remove app with below command
adb uninstall package_name

Categories

Resources