I have a declaration-stylable in my res/values/attrs.xml file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="SpannedGridLayoutManager">
<attr name="android:orientation" />
<attr name="spanCount" />
<attr name="aspectRatio" format="string" />
</declare-styleable>
<declare-styleable name="Gauge" parent="source">
<attr name="inverted" />
<attr name="title" />
<attr name="value" />
<attr name="target" />
<attr name="maxValue" />
</declare-styleable>
<declare-styleable name="DualGauge" parent="source">
<attr name="inverted" />
<attr name="title" />
<attr name="valueA" format="integer" />
<attr name="valueB" format="integer" />
<attr name="maxValueA" />
<attr name="maxValueB" />
</declare-styleable>
</resources>
I have three productFlavors one being PS
I upgraded to gradle-6.1.1-all.zip and now get the following error
> Task :app:processPSDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":6987}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/inverted (aka com.roll.ps:attr/inverted) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":6987}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/maxValueA (aka com.roll.ps:attr/maxValueA) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":6987}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/maxValueB (aka com.roll.ps:attr/maxValueB) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":7146}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/inverted (aka com.roll.ps:attr/inverted) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":7146}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/value (aka com.roll.ps:attr/value) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":7146}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/target (aka com.roll.ps:attr/target) not found.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml","position":{"startLine":7146}}],"original":"/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/maxValue (aka com.roll.ps:attr/maxValue) not found.\n ","tool":"AAPT"}
> Task :app:javaPreCompilePSDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processPSDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/inverted (aka com.roll.ps:attr/inverted) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/maxValueA (aka com.roll.ps:attr/maxValueA) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:6988: AAPT: error: resource attr/maxValueB (aka com.roll.ps:attr/maxValueB) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/inverted (aka com.roll.ps:attr/inverted) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/value (aka com.roll.ps:attr/value) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/target (aka com.roll.ps:attr/target) not found.
/Users/Barry/Desktop/studio/QA/app/build/intermediates/incremental/mergePSDebugResources/merged.dir/values/values.xml:7147: AAPT: error: resource attr/maxValue (aka com.roll.ps:attr/maxValue) not found.
Any Help ?
I have tried
sourceSets {
ps {
resources.srcDirs = ["app/src/ps/res/"]
manifest.srcFile "src/ps/AndroidManifest.xml"
}
}
No joy? ;(
Thanks in advance