Infeasible
Status Update
Comments
vi...@google.com <vi...@google.com>
ag...@google.com <ag...@google.com> #3
Thanks for the report. Sorry you are seeing issues with this. Would it be possible for you to share your debug APK with me either here on privately to ager@google.com?
Is this easily reproducible in a project that you would be comfortable sharing with me? It would make it a lot easier to investigate if we have a reproduction.
Is this easily reproducible in a project that you would be comfortable sharing with me? It would make it a lot easier to investigate if we have a reproduction.
yu...@gmail.com <yu...@gmail.com> #4
I'm sending debug apk to your email with details.
But no, I don't think it's easily reproducible.
Last time I tried again to fix this thing, I couldn't get rid of the crash until I removed the app.module.SomeClass itself. So I don't know why that specific class was making problems. I tried renaming, moving out of the package, removing all the contents of the class leaving just the declaration.
After that, I just gave up and bumped min version code to 21. So now I lowered minVersionCode back to 17 to build an apk for you. Weird thing is, now I have the same problem but with a different class (I added that class recently). *doesn't look like anything to me*
But no, I don't think it's easily reproducible.
Last time I tried again to fix this thing, I couldn't get rid of the crash until I removed the app.module.SomeClass itself. So I don't know why that specific class was making problems. I tried renaming, moving out of the package, removing all the contents of the class leaving just the declaration.
After that, I just gave up and bumped min version code to 21. So now I lowered minVersionCode back to 17 to build an apk for you. Weird thing is, now I have the same problem but with a different class (I added that class recently). *doesn't look like anything to me*
yu...@gmail.com <yu...@gmail.com> #5
minSdkVersion*
sg...@google.com <sg...@google.com> #6
Yunus,
Can you please clarify how the sample project fromhttps://drive.google.com/open?id=1Gydq9_bPkzaDiugLpK4wp8ZL9o9tkdbZ can reproduce the issues shown in the images.
If I just build the debug version I get:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:multiDexListDebug'.
> File '/usr/local/prj/r8-public/b131100011/Multidex/app/multidex-config.pro ' specified for property 'userMultidexProguardRules' does not exist.
Can you please clarify how the sample project from
If I just build the debug version I get:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:multiDexListDebug'.
> File '/usr/local/prj/r8-public/b131100011/Multidex/app/
yu...@gmail.com <yu...@gmail.com> #7
I didn't provide the sample project or the images (screenshots?). You might have to ask author of #2 about that.
ye...@gmail.com <ye...@gmail.com> #8
I has the same problem :
/dalvikvm: failed creating vtable
/dalvikvm: Link of class 'Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;' failed
/dalvikvm: VFY: unable to find class referenced in signature (Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;)
E/dalvikvm: Method Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;.clear overrides final Landroidx/lifecycle/ViewModel;.clear
11:37:48.450 2014-2014/com.borderxlab.dogfood.bieyang W/dalvikvm: Link of class 'Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;' failed
W/dalvikvm: VFY: unable to resolve virtual method 18261: Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;.addBubble (Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel$Bubble;)V
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.borderxlab.dogfood.bieyang, PID: 2014
java.lang.NoClassDefFoundError: com.borderxlab.bieyang.discover.presentation.productList.BubbleViewModel
at com.borderxlab.bieyang.discover.presentation.productList.DiscoverFragment.onActivityCreated(DiscoverFragment.java:197)
I had supported multidex for a long time, it happened after i release a new app version. The class BubbleViewModel had run long long ago..., pre-Versions work very well. I try to keep the BubbleViewModel into primary DEX ,it not work.
/dalvikvm: failed creating vtable
/dalvikvm: Link of class 'Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;' failed
/dalvikvm: VFY: unable to find class referenced in signature (Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;)
E/dalvikvm: Method Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;.clear overrides final Landroidx/lifecycle/ViewModel;.clear
11:37:48.450 2014-2014/com.borderxlab.dogfood.bieyang W/dalvikvm: Link of class 'Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;' failed
W/dalvikvm: VFY: unable to resolve virtual method 18261: Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel;.addBubble (Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel$Bubble;)V
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.borderxlab.dogfood.bieyang, PID: 2014
java.lang.NoClassDefFoundError: com.borderxlab.bieyang.discover.presentation.productList.BubbleViewModel
at com.borderxlab.bieyang.discover.presentation.productList.DiscoverFragment.onActivityCreated(DiscoverFragment.java:197)
I had supported multidex for a long time, it happened after i release a new app version. The class BubbleViewModel had run long long ago..., pre-Versions work very well. I try to keep the BubbleViewModel into primary DEX ,it not work.
ag...@google.com <ag...@google.com> #9
yeyizuo, this is unfortunately a Dalvik VM bug where package-private methods were sometimes incorrectly overriden by public methods in another package. :-\
Since this is a VM bug, you will unfortunately have to change the name of your Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel "clear" method. If you change the name of that method, this will avoid the Dalvik VM bug issue.
Let me know if that works for you.
Since this is a VM bug, you will unfortunately have to change the name of your Lcom/borderxlab/bieyang/discover/presentation/productList/BubbleViewModel "clear" method. If you change the name of that method, this will avoid the Dalvik VM bug issue.
Let me know if that works for you.
ag...@google.com <ag...@google.com> #10
Yunus, it looks like you might be hit by the same issue. It looks like you also have a ViewModel with a method called "clear" in your app. If you change the name of that method you should be able to avoid this Dalvik VM bug. Please let me know if that works for you. Otherwise, we will have to dig deeper.
ye...@gmail.com <ye...@gmail.com> #11
I solved my problem,Thank you!
ag...@google.com <ag...@google.com> #12
Thank you for confirming that this was the issue. I'll go ahead an close this bug as infeasible. Unfortunately, there is nothing we can do in the dexer/shrinker to fix this VM bug. :-\
Description
I already tried: enabling Multidex, including `app.module.SomeClass` to primary DEX file, cleaning cache, using a different machine.
Multidex version: AndroidX 2.0.1
Gradle version: 5.4
How can I fix it?
So question: