Open obsidianart opened 5 years ago
I had the following error
Execution failed for task ':react-native-directed-scrollview:verifyReleaseResources'. > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed Output: /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values/values.xml:957: error: resource android:attr/fontVariationSettings not found. /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values/values.xml:958: error: resource android:attr/ttcIndex not found. error: failed linking references. Command: /Users/obsidianart/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/24fc49a54beeb394af9f7efc15d0a12c/aapt2-3.2.1-4818971-osx/aapt2 link -I\ /Users/obsidianart/Library/Android/sdk/platforms/android-26/android.jar\ --manifest\ /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml\ -o\ /var/folders/zv/9q28yy151370p5m_h1nmzx5r0000gn/T/aapt-2196059786566862826-out\
and I was using build 27.0.3 (now I'm on 28). I don't know what causes the error but I'm writing what fixed it for the next person:
android { compileSdkVersion 28 buildToolsVersion "28.0.3"
Since currently I'm not in a CI with this project I can change directly the package but if someone with more knowledge than me can explain how else it can be fixed I would really appreciate
debug build success but fail in release "react": "16.8.3", "react-native": "0.59.9", "react-native-directed-scrollview": "git+https://github.com/chrisfisher/react-native-directed-scrollview.git"
I had the following error
and I was using build 27.0.3 (now I'm on 28). I don't know what causes the error but I'm writing what fixed it for the next person:
Since currently I'm not in a CI with this project I can change directly the package but if someone with more knowledge than me can explain how else it can be fixed I would really appreciate