Closed vvasuki closed 7 years ago
Dependencies in build.gradle is as below: dependencies { compile 'com.android.tools.build:gradle:1.0.0' compile 'com.android.support:multidex:1.0.0' compile 'com.android.support:support-v4:21.0.0' compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.loopj.android:android-async-http:1.4.5' compile 'org.apache.commons:commons-io:1.3.2' compile 'org.apache.commons:commons-compress:1.2' compile 'com.google.guava:guava:11.0.2' }
Yet, the apk produced does not contain the org.apache.commons.* classes.
Potential solution : proguard : http://stackoverflow.com/questions/12483973/android-signed-apk-file-does-not-include-external-library-and-throws-java-lang
[Edit - no luck with that strategy. Posted question on StackOverflow - http://stackoverflow.com/questions/28955890/android-apk-noclassdeffounderror-on-class-that-are-part-of-dependencies ]
Seems obsolete.
Report Screenshot: http://i.imgur.com/DRCU6R7.png
java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream at sanskritcode.sanskritdictionaryupdater.GetDictionariesActivity$DictExtracter.doInBackground(GetDictionariesActivity.java:183) at sanskritcode.sanskritdictionaryupdater.GetDictionariesActivity$DictExtracter.doInBackground(GetDictionariesActivity.java:156) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more