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 #8

Open
tomassvatek opened this issue Oct 29, 2021 · 1 comment
Open

Android resource linking failed #8

tomassvatek opened this issue Oct 29, 2021 · 1 comment

Comments

@tomassvatek
Copy link

tomassvatek commented Oct 29, 2021

Android build always fails because of linking. It seems to me the package supports auto-linking, right? I am using the package with i18next-react-native-language-detector.

Build command

./gradlew assembleRelease

Project dependencies

image

Error log

> Task :react-native-locale-detector:verifyReleaseResources FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-locale-detector:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:5:5-8:13: AAPT: error: resource android:attr/colorError not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v28/values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startX not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startY not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endX not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endY not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:126:5-132:25: AAPT: error: resource android:attr/offset not found.
```> Task :react-native-locale-detector:verifyReleaseResources FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-locale-detector:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:5:5-8:13: AAPT: error: resource android:attr/colorError not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v28/values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/7292e758536ffb257450722a25154385/transformed/appcompat-1.0.0/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startX not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/startY not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endX not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/endY not found.
         
     ERROR:/Users/tomassvatek/.gradle/caches/transforms-3/6b2341fde7cad02474b7caa2903bb054/transformed/core-1.0.0/res/values/values.xml:126:5-132:25: AAPT: error: resource android:attr/offset not found.
@JFranco-Advanced
Copy link

I have the same problem, could you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants