Yuez
Aspiring developer
Profile
Posts: 4
Reg: Feb 01, 2012
location unknow...
3,740
03/03/13 05:14 AM (12 years ago)

'missing shared library' error

I created a very basic v2.0 app and downloaded the source code for Android, imported 'Existing Android Code Into Workspace', changed 'Debuggable' property into 'False', then 'Export Signed Application Package', only to find I failed to install the app on my phone. I can't run it on the Android emulator, either. They both produced a 'missing shared library' error. I am running Android Developer Tools Build: v21.1.0-569685, using Google API Level 8 [Android 2.2], having installed all of the extras in the Android SDK Manager window. Does anybody know how to fix the error? Thanks.
 
Yuez
Aspiring developer
Profile
Posts: 4
Reg: Feb 01, 2012
location unknow...
3,740
like
03/03/13 05:39 AM (12 years ago)
And I am running Windows 7 Home Premium 64bit. Java edition is: JDK 1.7u15 64bit and 32bit both installed.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/03/13 05:59 AM (12 years ago)
Would you have any logs that would indicate 'which' shared library is missing? Cheers! -- Smug (And a little off topic, but 'Tubular Bells' is in my Ten favorite albums. Magnificent work.)
 
Yuez
Aspiring developer
Profile
Posts: 4
Reg: Feb 01, 2012
location unknow...
3,740
like
03/03/13 06:51 AM (12 years ago)
Here is what I find in LogCat: 03-03 21:41:59.289: E/PackageManager(163): Package com.schoolintranet requires unavailable shared library com.google.android.maps; failing! Thanks! (I first knew the album five years ago when I was 13 then and fell in love with it instantly. Incredible!)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/03/13 01:28 PM (12 years ago)
Are you trying this on a real device or on the simulator? If you're trying on the simulator, ensure your 'AVD' device is running the same Google API level (v2.2/API 8) as your compiler. Let us know if that helps! Cheers! -- Smug
 
Yuez
Aspiring developer
Profile
Posts: 4
Reg: Feb 01, 2012
location unknow...
3,740
like
03/06/13 02:26 AM (12 years ago)
Both on a real device and on the simulator. Eventually, I figured out what was wrong. At the end of AndroidManifest.xml: <!-- THE NEXT LINE IS ONLY USED IF MAPS ARE USED --> <uses-library android:name="com.google.android.maps"/> I didn't delete the line, and that caused the issue. Thank you anyway.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/06/13 03:08 AM (12 years ago)
Wow. I wouldn't have thought of that. I don't remove mine... of course, I fool around with maps a lot in my projects, so... Glad you're going again! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.