KasperskyLab / Kaspresso

Android UI test framework

Home Page:https://kasperskylab.github.io/Kaspresso/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android resource linking failed (Material 3 support)

dariusz-rusin opened this issue · comments

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?

I found a workaround was to include material in debug.

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