Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android INSTALL_FAILED_INVALID_URI

Tags:

android

apk

I just started getting the following error when I attempt to install an Android application to a device through Eclipse:

Installation failed due to invalid URI!
Please check logcat output for more details.
Launch canceled!

I've also tried installing both the APK in the bin folder and a signed APK through adb. When I do this, I get an INSTALL_FAILED_INVALID_URI error.

I haven't changed anything about my setup, and it used to work without a problem.

Any ideas? Thanks!

LogCat output:

D/AndroidRuntime(32345): CheckJNI is OFF
D/dalvikvm(32345): Unable to stat classpath element '/system/framework/com.orange.authentication.simcard.jar'
D/AndroidRuntime(32345): Calling main entry com.android.commands.pm.Pm
V/Performance(32111): >>com.android.defcontainer.DefaultContainerService@40d944a8 onCreate
V/Performance(32111): <<com.android.defcontainer.DefaultContainerService@40d944a8 onCreate, 3ms
V/Performance(32111): >>com.android.defcontainer.DefaultContainerService@40d944a8 onBind
V/Performance(32111): <<com.android.defcontainer.DefaultContainerService@40d944a8 onBind, 1ms
W/asset   (32111): Asset path /data/local/tmp/CS2110Project.apk is neither a directory nor file (type=0).
W/DefContainer(32111): Failed to parse package
W/ActivityManager(  744): No content provider found for permission revoke: file:///data/local/tmp/CS2110Project.apk
D/dalvikvm(  744): GC_EXPLICIT freed 1196K, 36% free 20088K/31267K, paused 10ms+14ms
D/AndroidRuntime(32345): Shutting down VM
I/AndroidRuntime(32345): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm(32345): GC_CONCURRENT freed 135K, 72% free 578K/2048K, paused 1ms+1ms
D/dalvikvm(32345): Debugger has detached; object registry had 1 entries
like image 424
Computerish Avatar asked Apr 13 '12 13:04

Computerish


4 Answers

For ME, it wanted the full path.

  • pm install joe.apk failed.
  • pm install ./joe.apk failed.
  • chmod'ed everything, still failed.
  • pm install /data/joe.apk worked.
like image 166
FrankRizzo Avatar answered Nov 13 '22 09:11

FrankRizzo


Just for the record:

For me it turned out to be an umlaut (ä,ü,ö) Problem in the Project name.

I did the following to solve it:

  1. Refactor -> Rename (replaced the umlauts)
  2. did a Project -> Clean

Hope this saves some time to others… took me quite a while.

like image 22
Langusten Gustel Avatar answered Nov 13 '22 08:11

Langusten Gustel


Turned out to be a ROM issue. I reflashed to a newer ROM and everything works just fine now. Seems to be a fairly common problem actually.

like image 8
Computerish Avatar answered Nov 13 '22 08:11

Computerish


For me, I rooted my device and every time i turn the phone on it re-updates android. With that in mind, I had to reset the chmod 777 to the local directory. So this is more of a reminder to check your permissions then an answer but it may help someone.

like image 5
Rit Man Avatar answered Nov 13 '22 09:11

Rit Man