async-storage: Unable to build assemble releas on android react native 0.60.5
Current behavior
There is the following error when building ./gradlew assembleRelease
Expected behavior
it build without error
Repro steps
./gradlew assembleRelease
Environment
- Async Storage version: “^1.6.1”
- React-Native version: “0.60.5”
- Platform tested: Android
- Logs/Error that are relevant:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':@react-native-community_async-storage:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values\values.xml:2737: error: resource android:attr/fontVariationSettings not found.
D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values\values.xml:2738: error: resource android:attr/ttcIndex not found.
error: failed linking references.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (8 by maintainers)
@SimonPotier This is the main problem - the Gradle does know where to find Android SDK. Normally, this path is included in
local.properties
and looks something like this:Try finding your Android SDK path and adding it to the
local.properties
.@Krizzu Thanks, the issue for me was that the Android SDK wasn’t even installed on my machine, I installed it using Android Studio. The build works fine now, thanks again.