Skip to content

android.content.res.Resources$NotFoundException: Resource ID #0x10102eb #12

Open

Description

@faisalmemon1991

This error appeared on Crouton library - https://github.com/keyboardsurfer/Crouton after implementing Multidex

android.content.res.Resources$NotFoundException: Resource ID #0x10102eb
at android.content.res.Resources.getValue(Resources.java:1981)
at android.content.res.Resources.getDimensionPixelSize(Resources.java:1476)
at de.keyboardsurfer.android.widget.crouton.Crouton.initializeCroutonViewGroup(Crouton.java:817)
at de.keyboardsurfer.android.widget.crouton.Crouton.initializeCroutonView(Crouton.java:801)
at de.keyboardsurfer.android.widget.crouton.Crouton.getView(Crouton.java:779)
at de.keyboardsurfer.android.widget.crouton.Manager.addCroutonToView(Manager.java:195)
at de.keyboardsurfer.android.widget.crouton.Manager.handleMessage(Manager.java:164)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)

Activity

  1. casidiablo commented on Oct 29, 2014

    @casidiablo
    Owner

    This one is weird. What multidex does is just spliting your dex file in multiple dex files, but it should not mess with your resources. Can you confirm that once the APK is generated the resource is there?

  2. faisalmemon1991 commented on Oct 31, 2014

    @faisalmemon1991
    Author

    I could not find any resource with such id in R.java

  3. casidiablo commented on Oct 31, 2014

    @casidiablo
    Owner

    Don't trust R.java since it's automatically generated. Make sure that the resource (follow the stacktrace) which is being loaded exists in the resources of the APK.

  4. faisalmemon1991 commented on Nov 3, 2014

    @faisalmemon1991
    Author

    I dont know which resource not getting loaded, because its just giving resource id - see the stack trace above.

    at android.content.res.Resources.getValue(Resources.java:1981)

    Resources.java:1981 redirects me to a commented place. I dont know what is wrong :(

  5. casidiablo commented on Nov 3, 2014

    @casidiablo
    Owner

    It's perfectly normal that Resources.java shows you incoherent stuff (sad but true). You should be looking at Crouton.java:817 instead.

  6. faisalmemon1991 commented on Nov 6, 2014

    @faisalmemon1991
    Author

    Crouton.java has only 140 lines of code :(

  7. casidiablo commented on Nov 6, 2014

    @casidiablo
    Owner

    ROFLMAO!

    Ok... so if you want to contribute with the community and/or help me help you, I'd create an example problem were I can reproduce and debug this.

  8. faisalmemon1991 commented on Nov 6, 2014

    @faisalmemon1991
    Author

    Sure 👍

  9. casidiablo commented on Nov 6, 2014

    @casidiablo
    Owner

    Actually, I just updated the README encouraging all people to witch to buildToolsVersion 21.1.0, since multidexing is officially supported now. So, you might try using that and keep the conversation in the android-dev mailing list and/or StackOverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions