Android proguard having trouble running an APK with linked project libraries
I am trying to export an android application that uses a couple different libraries. Two of the libraries are jar files but the other libraries are linked projects. For instance one of the libraries is a mapview balloon view. To use the library, I added the project to my workspace, go to project properties for it and under Android I marked the project as "use as library". And then in the application I am building, I linked the project library using its path (in the Android menu). The application exports correctly however when I try to run the app on my dev phone it crashes with the following error:
07-06 13:50:00.238: ERROR/AndroidRuntime(3282): Caused by: java.lang.ClassNotFoundException: com.markupartist.android.widget.ScrollingTextView in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.alltrails-1.apk]
My proguard file contains the following:
-dontwarn -dontnote -dontskipnonpubliclibraryclasses -libraryjars libs/osmdroid-android-3.0.4.jar -libraryjars libs/osmdroid-google-3.0.4.jar -libraryjar开发者_运维知识库s libs/slf4j-android-1.5.8.jar -libraryjars /Applications/android-sdk-mac_x86/add-ons/addon_google_apis_google_inc_4/libs/maps.jar
Thanks in advance!!
The class com.markupartist.android.widget.ScrollingTextView is missing from your application. If it is in one of the library jars, you should specify that jar as a program jar (-injars), since the contents of library jars don't get copied into the output jar.
精彩评论