Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation Failed due to Invalid URI? Installs only in debug mode?

Tags:

android

What are the possible causes of android failed to install. Invalid URI? What URI is this referring to and in what way is it invalid? It works fine in debug mode, but I cannot get it to install outside of debug mode.

Thanks

like image 323
user1847544 Avatar asked Nov 29 '12 01:11

user1847544


2 Answers

This error can point to so many different things, and there is many different fixes. To sum those I've gathered:

  1. Problems with Eclipse: Clean project, rebuild project, restart eclipse.

  2. Invalid characters: Remove any special characters in Eclipse project name. Use only [a-z] and [0-9] not even [ ] (whitespace)

  3. Error in included jar: Try without jar and see if it runs, if does fix somehow.
  4. Errors in manifest package setup: Right click in eclipse on project -> Android tools -> Rename application package (rename to something similar, you can always rename back).
  5. Problems with device: Remove app from device and try re install.
like image 115
Sampath Kumar Avatar answered Nov 09 '22 23:11

Sampath Kumar


ingyesid above basically means you need to refactor your project name to not include any non en/us characters. This will then change the apk filename which also cannot have accented letters eg; "ÖÄÅåäöééıßç....etc".. (and neither can any 'res' asset" have these). I had this problem recently when doing swedish, make sure project name and all filenames are in ENGLISH chars/nums only.

-You can however set your appname variable in "res/values/Strings" to the proper international chars.

This is either a bug or some shortsightedness on behalf of android devs. :/

like image 39
Dan Harvey Avatar answered Nov 09 '22 23:11

Dan Harvey