Skip to content
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

ResourceNotFoundException File res/drawable-hdpi/tw_ic_bullet_key_permission_light.png from drawable resource ID #0x1080a3f: .xml extension required #128

Open
SammyOdenhoven opened this issue Jan 30, 2020 · 5 comments

Comments

@SammyOdenhoven
Copy link

Apologies if this issue isn't with this library, but I've been seeing the following error happen in our app.

Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/tw_ic_bullet_key_permission_light.png from drawable resource ID #0x1080a3f: .xml extension required
        at android.content.res.Resources.loadColorStateList(Resources.java:3240)
        at android.content.res.TypedArray.getColorStateList(TypedArray.java:343)
        at com.airbnb.paris.typed_array_wrappers.TypedArrayTypedArrayWrapper.getColorStateList(TypedArrayTypedArrayWrapper.kt:34)
        at android.view.ViewStyleApplier.processAttributes(ViewStyleApplier.java:104)
        at com.airbnb.paris.StyleApplier.apply(StyleApplier.kt:60)
        at android.widget.TextViewStyleApplier.applyParent(TextViewStyleApplier.java:42)
        at com.airbnb.paris.StyleApplier.apply(StyleApplier.kt:47)
        at com.airbnb.paris.StyleApplier.apply(StyleApplier.kt:40)
        at com.airbnb.paris.extensions.TextViewStyleExtensionsKt.style(TextViewStyleExtensions.kt:42)
        at com.rubicoin.invest.tools.view.ProductButtonVertical.setInactiveState(ProductButtonVertical.kt:139)

The calling code:
dynamicProductButton_periodCount.style(R.style.ProductButtonPeriodCountInactiveState)

and style:

	<style name="ProductButtonPeriodCountInactiveState">
		<item name="android:textSize">@dimen/s26</item>
		<item name="android:fontFamily">@font/roboto_medium</item>
		<item name="android:textColor">@color/dark_slate_more_blue</item>
	</style>
@edwnmrtnz
Copy link

@SammyOdenhoven Hi! Were you able to solve the problem? or any workaround? I'm currently facing the same issue.

@SammyOdenhoven
Copy link
Author

@edwnmrtnz I haven't put a fix in place for this, no. Waiting on feedback from @ngsilverman

@ngsilverman
Copy link
Collaborator

@edwnmrtnz are you getting exactly the same error? Can I see the stacktrace?

@SammyOdenhoven is tw_ic_bullet_key_permission_light.png one of your assets? How is @color/dark_slate_more_blue defined?

@SammyOdenhoven
Copy link
Author

@ngsilverman no, that's not one of our assets. @color/dark_slate_more_blue is <color name="dark_slate_more_blue">#0d4c5a</color>

@tilda-bg
Copy link

tilda-bg commented Dec 24, 2020

Same issue

Fatal Exception: android.content.res.Resources$NotFoundException: File res/drawable-xhdpi/tw_ic_bullet_key_permission_light.png from drawable resource ID #0x1080a7a: .xml extension required. If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.
       at android.content.res.Resources.loadColorStateList(Resources.java:3631)
       at android.content.res.TypedArray.getColorStateList(TypedArray.java:343)
       at com.airbnb.paris.typed_array_wrappers.TypedArrayTypedArrayWrapper.getColorStateList(TypedArrayTypedArrayWrapper.java:34)
       at android.view.ViewStyleApplier.processAttributes(ViewStyleApplier.java:104)
       at com.airbnb.paris.StyleApplier.apply(StyleApplier.java:63)
       at android.widget.TextViewStyleApplier.applyParent(TextViewStyleApplier.java:42)
       at com.airbnb.paris.StyleApplier.apply(StyleApplier.java:50)
       at com.airbnb.paris.StyleBuilder.apply(StyleBuilder.java:63)
       at my.app.fragments.LoginFragment.checkButton(LoginFragment.java:261)
       at my.app.fragments.LoginFragment.onCreateView(LoginFragment.java:196)
       at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2698)
       at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320)
       at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187)
       at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
       at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
       at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497)
       at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
       at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
       at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
       at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
       at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849)
       at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413)
       at android.os.Handler.handleCallback(Handler.java:733)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:146)
       at android.app.ActivityThread.main(ActivityThread.java:5679)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
       at dalvik.system.NativeStart.main(NativeStart.java)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants