Skip to content

Android resource linking failed (Material 3 support) #578

@dariusz-rusin

Description

@dariusz-rusin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions