material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[material:1.9.0] Android resource linking failed after update to 1.9.0

Open thproflord opened this issue 1 year ago • 9 comments
trafficstars

Description: I'm migrating from 1.5.0 to 1.9.0 and when I start making the project and I'm getting Android resource linking failed error: resource style/ShapeAppearanceOverlay (aka my.company:style/ShapeAppearanceOverlay) not found. error: failed linking references.

I tried 1.7.0 , 1.80, and the same error, I tried 1.6.0 and build with no problems,

I search in the whole project for ShapeAppearanceOverlay and deleted everything related with the overlay hopping it will fix the issue, but is persisting

Even tried with 1.10.0 same error

thproflord avatar Nov 24 '23 01:11 thproflord

It sounds like you're seeing this issue when upgrading from 1.6.0 to 1.7.0. Could you try updating all dependencies to the minimum required versions in the "New minimum requirements for your app's project" section of the 1.7.0 release notes?

afohrman avatar Nov 29 '23 19:11 afohrman

These are my version for the Minimum requirements androidx.appcompat -> 1.6.1 androidx.core -> 1.10.0 androidx.test:core -> 1.5.0 (this one is ok with core or do i need to use the full dependecy?) AGP -> 7.4 Gradle -> 7.5 Java -> 11 Kotlin -> 1.8.0 SDK -> 33

thproflord avatar Nov 29 '23 20:11 thproflord

Tried removing all themes from all material components and also removing all the themes from material

thproflord avatar Nov 29 '23 20:11 thproflord

Those dependencies look ok, what version of Android Studio are you using? As of the 1.7.0 release, version Chipmunk or later is required.

afohrman avatar Nov 29 '23 21:11 afohrman

image

thproflord avatar Nov 29 '23 21:11 thproflord

Interesting, that looks fine. Could you please upload a sample of your project showing your theming structure and any theme attributes your app uses?

afohrman avatar Nov 29 '23 21:11 afohrman

Would you like me to send how all our themes and how all materials components are implemented?

thproflord avatar Nov 30 '23 13:11 thproflord

Facing same issue. What's the solution

tarunkonda54321 avatar Jan 31 '24 18:01 tarunkonda54321

I have found a band aid, still testing to ensure nothing breaks, hope to get a response from a developer Still can't find what is producing the error, check everything and migrated what needed to migrate, I was still getting the error so I just added in my app themes file and fix it, but still looking for anything that may be broken

thproflord avatar Feb 05 '24 18:02 thproflord