mohan-nishit / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Collect 7, install fails ungracefully without Google Maps on Emulator #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The new ODK Beta fails to install from ADB to an Emulator running Android 1.6:

mojotexas@Starjammer Downloads $ adb install ODK-Collect-1.1.7-beta1.apk
1166 KB/s (583798 bytes in 0.488s)
    pkg: /data/local/tmp/ODK-Collect-1.1.7-beta1.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

The same result to an Emulator running Android 2.2
mojotexas@Starjammer Downloads $ adb install ODK-Collect-1.1.7-beta1.apk
1166 KB/s (583798 bytes in 0.488s)
    pkg: /data/local/tmp/ODK-Collect-1.1.7-beta1.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

Using LogCat I get this output: 

E/PackageManager(   52): Package org.odk.collect.android requires unavailable 
shared library com.google.android.maps; failing!
W/PackageManager(   52): Package couldn't be installed in 
/data/app/org.odk.collect.android.apk
D/AndroidRuntime(  241): Shutting down VM

So, it looks like there is a requirement for Google Maps to be installed

After installing Maps:

mojotexas@Starjammer KoBo $ adb install 
/home/mojotexas/Documents/KoBo/ROM/apps/system/com.google.android.maps.apk
1160 KB/s (3661236 bytes in 3.082s)
    pkg: /data/local/tmp/Maps.apk
Success

I still get the same missing library, logcat says:
E/PackageManager(   52): Package org.odk.collect.android requires unavailable 
shared library com.google.android.maps; failing!
W/PackageManager(   52): Package couldn't be installed in 
/data/app/org.odk.collect.android.apk

Attempted to insdtall on an actual phone is successful. Installed and running 
on my Wildfire (Android 2.2). 

What is the expected output? What do you see instead?

Expected: 

$ adb install 
/home/mojotexas/Documents/KoBo/ROM/apps/system/ODK-Collect-1.1.7-beta1.apk
1160 KB/s (3661236 bytes in 3.082s)
    pkg:ODK-Collect-1.1.7-beta1.apk
Success

Instead I see: 
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

What version of the product are you using? On what operating system?
Ubuntu Natty
ODK 1.17
Emulators running Android 1.6 and 2.2
Android Phone (Wildfire) running Android 2.2

Please provide any additional information below.
Good to see 1.17 is out. 

Original issue reported on code.google.com by mojote...@gmail.com on 7 Jun 2011 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 7 Jun 2011 at 11:14

GoogleCodeExporter commented 9 years ago
You need to create an AVD for your emulator using a target of  "Google APIs".   
I'm not entirely sure what level, though.  The basic android AVD doesn't 
include the Google libraries like maps.

Original comment by carlhart...@gmail.com on 10 Jun 2011 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by carlhart...@gmail.com on 27 Sep 2011 at 6:03