indic-dict / stardict-dictionary-updater

An android app that updates all your Sanskrit Dictionaries from our stardict-* repositories in one shot.
https://sites.google.com/site/sanskritcode/
12 stars 3 forks source link

Android 4.4 errors: NoClassDefFoundError: GzipCompressorInputStream #2

Closed vvasuki closed 7 years ago

vvasuki commented 9 years ago

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

vvasuki commented 9 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.

vvasuki commented 9 years ago

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 ]

vvasuki commented 7 years ago

Seems obsolete.