{"action":"created","issue":{"url":"https://api.github.com/repos/android/android-ktx/issues/581","repository_url":"https://api.github.com/repos/android/android-ktx","labels_url":"https://api.github.com/repos/android/android-ktx/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/android/android-ktx/issues/581/comments","events_url":"https://api.github.com/repos/android/android-ktx/issues/581/events","html_url":"https://github.com/android/android-ktx/issues/581","id":331773617,"node_id":"MDU6SXNzdWUzMzE3NzM2MTc=","number":581,"title":"ImageDecoder source and test issues","user":{"login":"tomaszrykala","id":4431669,"node_id":"MDQ6VXNlcjQ0MzE2Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/4431669?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaszrykala","html_url":"https://github.com/tomaszrykala","followers_url":"https://api.github.com/users/tomaszrykala/followers","following_url":"https://api.github.com/users/tomaszrykala/following{/other_user}","gists_url":"https://api.github.com/users/tomaszrykala/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszrykala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszrykala/subscriptions","organizations_url":"https://api.github.com/users/tomaszrykala/orgs","repos_url":"https://api.github.com/users/tomaszrykala/repos","events_url":"https://api.github.com/users/tomaszrykala/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszrykala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-12T22:15:48Z","updated_at":"2018-07-02T11:19:02Z","closed_at":null,"author_association":"NONE","body":"`ImageDecoder.kt` can't resolve dependencies like `ImageInfo` and `ImageDecoder` itself.\r\n\r\nTests fail:\r\n\r\ndecodeBitmap\r\n```\r\njava.lang.NoClassDefFoundError: Failed resolution of: Landroid/graphics/ImageDecoder;\r\nat androidx.core.graphics.ImageDecoderTest.decodeBitmap(ImageDecoderTest.kt:30)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\nat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\nat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\nat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\nat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat org.junit.runners.Suite.runChild(Suite.java:128)\r\nat org.junit.runners.Suite.runChild(Suite.java:27)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\nat org.junit.runner.JUnitCore.run(JUnitCore.java:115)\r\nat android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:58)\r\nat android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:375)\r\nat android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2074)\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"android.graphics.ImageDecoder\" on path: DexPathList[[zip file \"/system/framework/android.test.runner.jar\", zip file \"/data/app/androidx.core.ktx.test-in_p9h3LOkyEVTgw2RVPkw==/base.apk\"],nativeLibraryDirectories=[/data/app/androidx.core.ktx.test-in_p9h3LOkyEVTgw2RVPkw==/lib/x86, /system/lib, /vendor/lib]]\r\nat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:379)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n... 29 more\r\n```\r\n\r\ndecodeDrawable\r\n```\r\njava.lang.NoClassDefFoundError: Failed resolution of: Landroid/graphics/ImageDecoder;\r\nat androidx.core.graphics.ImageDecoderTest.decodeDrawable(ImageDecoderTest.kt:37)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\nat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\nat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\nat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\nat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\nat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat org.junit.runners.Suite.runChild(Suite.java:128)\r\nat org.junit.runners.Suite.runChild(Suite.java:27)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\nat org.junit.runner.JUnitCore.run(JUnitCore.java:115)\r\nat android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:58)\r\nat android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:375)\r\nat android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2074)\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"android.graphics.ImageDecoder\" on path: DexPathList[[zip file \"/system/framework/android.test.runner.jar\", zip file \"/data/app/androidx.core.ktx.test-in_p9h3LOkyEVTgw2RVPkw==/base.apk\"],nativeLibraryDirectories=[/data/app/androidx.core.ktx.test-in_p9h3LOkyEVTgw2RVPkw==/lib/x86, /system/lib, /vendor/lib]]\r\nat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:379)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n... 29 more\r\n```"},"comment":{"url":"https://api.github.com/repos/android/android-ktx/issues/comments/401772291","html_url":"https://github.com/android/android-ktx/issues/581#issuecomment-401772291","issue_url":"https://api.github.com/repos/android/android-ktx/issues/581","id":401772291,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTc3MjI5MQ==","user":{"login":"will-nolan","id":8830837,"node_id":"MDQ6VXNlcjg4MzA4Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/8830837?v=4","gravatar_id":"","url":"https://api.github.com/users/will-nolan","html_url":"https://github.com/will-nolan","followers_url":"https://api.github.com/users/will-nolan/followers","following_url":"https://api.github.com/users/will-nolan/following{/other_user}","gists_url":"https://api.github.com/users/will-nolan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-nolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-nolan/subscriptions","organizations_url":"https://api.github.com/users/will-nolan/orgs","repos_url":"https://api.github.com/users/will-nolan/repos","events_url":"https://api.github.com/users/will-nolan/events{/privacy}","received_events_url":"https://api.github.com/users/will-nolan/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T11:19:02Z","updated_at":"2018-07-02T11:19:02Z","author_association":"NONE","body":"To be fair, the shire does look like shit."}}
{"actor":{"display_login":"will-nolan"}}