Skip to content

Instantly share code, notes, and snippets.

@taisukeoe
Created January 12, 2016 18:09
Show Gist options
  • Save taisukeoe/dcfe8c33ab2e025dfb66 to your computer and use it in GitHub Desktop.
Save taisukeoe/dcfe8c33ab2e025dfb66 to your computer and use it in GitHub Desktop.
ImageIO is not found in Android
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: FATAL EXCEPTION: main
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: Process: com.example.android.displayingbitmaps, PID: 21402
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/imageio/ImageIO;
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at org.canova.image.recordreader.BaseImageRecordReader.<clinit>(BaseImageRecordReader.java:72)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.example.android.displayingbitmaps.ui.ImageGridActivity.trainMLP(ImageGridActivity.java:99)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.example.android.displayingbitmaps.ui.ImageGridActivity.onCreate(ImageGridActivity.java:72)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6221)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2614)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:172)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.os.Looper.loop(Looper.java:145)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5835)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.imageio.ImageIO" on path: DexPathList[[zip file "/data/app/com.example.android.displayingbitmaps-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at org.canova.image.recordreader.BaseImageRecordReader.<clinit>(BaseImageRecordReader.java:72) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.example.android.displayingbitmaps.ui.ImageGridActivity.trainMLP(ImageGridActivity.java:99) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.example.android.displayingbitmaps.ui.ImageGridActivity.onCreate(ImageGridActivity.java:72) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6221) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2614) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:172) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.os.Looper.loop(Looper.java:145) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5835) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) 
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: javax.imageio.ImageIO
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.Class.classForName(Native Method)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-13 02:59:43.556 21402-21402/com.example.android.displayingbitmaps E/AndroidRuntime: ... 17 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment