New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collision of R.Id between resource from my main and apklib (regression between 3.8.1 and 3.8.2) #382
Comments
Yes... we switched to the behaviour of the SDK and the Gradle build system. You have to remove the duplicates. |
Hello, Atali
|
Try the latest 3.9.0-rc.2 and send us the log with more details. |
05-31 05:58:42.495 1240-1240/com.zenittude E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.zenittude, PID: 1240
android.view.InflateException: Binary XML file line #23: Error inflating class com.zenittude.wizardpager.ui.StepPagerStrip
at android.view.LayoutInflater.createView(LayoutInflater.java:620)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen.onCreateView(CustomizationScreen.java:53)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen_.onCreateView(CustomizationScreen_.java:58)
at android.app.Fragment.performCreateView(Fragment.java:1700)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:479)
at com.zenittude.v2.common.NavigationManager.openNavigationRight(NavigationManager.java:181)
at com.zenittude.v2.common.NavigationManager_.access$1401(NavigationManager_.java:16)
at com.zenittude.v2.common.NavigationManager_$14.run(NavigationManager_.java:238)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen.onCreateView(CustomizationScreen.java:53)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen_.onCreateView(CustomizationScreen_.java:58)
at android.app.Fragment.performCreateView(Fragment.java:1700)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:479)
at com.zenittude.v2.common.NavigationManager.openNavigationRight(NavigationManager.java:181)
at com.zenittude.v2.common.NavigationManager_.access$1401(NavigationManager_.java:16)
at com.zenittude.v2.common.NavigationManager_$14.run(NavigationManager_.java:238)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x3 is not valid
at android.content.res.Resources.getDimensionPixelSize(Resources.java:623)
at com.zenittude.wizardpager.ui.StepPagerStrip.<init>(StepPagerStrip.java:70)
at com.zenittude.wizardpager.ui.StepPagerStrip.<init>(StepPagerStrip.java:59)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen.onCreateView(CustomizationScreen.java:53)
at com.zenittude.v2.module.ordering.screen.CustomizationScreen_.onCreateView(CustomizationScreen_.java:58)
at android.app.Fragment.performCreateView(Fragment.java:1700)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:479)
at com.zenittude.v2.common.NavigationManager.openNavigationRight(NavigationManager.java:181)
at com.zenittude.v2.common.NavigationManager_.access$1401(NavigationManager_.java:16)
at com.zenittude.v2.common.NavigationManager_$14.run(NavigationManager_.java:238)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method) Extract from my library R.java package com.zenittude.wizardpager;
public final class R {
public static final class attr {
.......
public static final class dimen {
public static final int step_pager_tab_height=0x7f050001;
public static final int step_pager_tab_spacing=0x7f050002;
public static final int step_pager_tab_width=0x7f050000;
}
...... Extract from my main app R.java package com.zenittude;
public final class R {
public static final class animator {
public static final int card_flip_left_in=0x7f050000;
public static final int card_flip_left_out=0x7f050001;
public static final int card_flip_right_in=0x7f050002;
public static final int card_flip_right_out=0x7f050003;
public static final int slide_in_left=0x7f050004;
public static final int slide_out_right=0x7f050005;
} While debugging, the resource takes into account is card_flip_left_in instead of step_pager_tab_width. |
You're going to need to provide us with a link to a cut down project
|
Hi, I tried to create a project from scratch but I was unable to reproduce the issue. But what I have noticed is in my target directory the lib R.java is not generated anymore to my main app.
Hope that can help. |
Post the project in which it's failing otherwise we really have nothing to
|
Are you really sure you use 3.9.0-rc.2 ? |
@william-ferguson-au Unfortunately I can't post my project :-( @Shusshu as you can see on the following screenshot, I am in version 3.9.0-rc.2 |
Just cut out whatever you want to keep hidden. If you can't provide a cut If that's the case you should close the issue.
|
Ok I understand it's difficult without the source code, it will take to much time to cut down the project. Thanks a lot for your time |
Hello,
I using AndroidAnnotations on my main project and I use an apklib. From my main project, I am using a resource coming from my apklib.
Until version 3.8.1, it was working perfectly but since the version 3.8.2 I got duplicate resource Id.
Have you changed something on the behavior ?
Best regards,
The text was updated successfully, but these errors were encountered: