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

Android resource linking failed (Material 3 support) #578

Open
dariusz-rusin opened this issue Sep 22, 2023 · 1 comment
Open

Android resource linking failed (Material 3 support) #578

dariusz-rusin opened this issue Sep 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dariusz-rusin
Copy link

dariusz-rusin commented Sep 22, 2023

Adding latest version of Kaspresso (1.5.3) as a dependency and firing the connectedAndroidTest ends up with error "Android resource linking failed".

Expected Behavior
connectedAndroidTest can be run without any problems.

What went wrong
Adding Kaspresso as a dependency and firing the tests ends up with error:

AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":".../build/intermediates/incremental/euDebugAndroidTest/mergeEuDebugAndroidTestResources/merged.dir/values/values.xml","position":{"startLine":2199}}],"original":"ERROR: .../build/intermediates/incremental/euDebugAndroidTest/mergeEuDebugAndroidTestResources/merged.dir/values/values.xml:2200: AAPT: error: style attribute 'attr/drawerLayoutStyle (aka com.xxx.test:attr/drawerLayoutStyle)' not found.\n ","tool":"AAPT"}

The given generated values.xml leads to line:
<item name="drawerLayoutStyle">@style/Widget.Material3.DrawerLayout</item>

Specifications
App with Material 3 dependency.

It's looks like the dependency to Material3 in Kaspresso is missing. I'm right? Do you plan support it?

@dariusz-rusin dariusz-rusin added the bug Something isn't working label Sep 22, 2023
@marukami
Copy link

I found a workaround was to include material in debug.

debugImplementation("com.google.android.material:material:1.10.0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants