Issues building Android APK
See original GitHub issueAttempting to build a release Android APK while using this library results in an error when compiling.
Compilation made using ./android/gradlew assembleRelease
* What went wrong:
Execution failed for task ':@voximplant_react-native-foreground-service:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/home/evenset/Desktop/myant/mobile-app/node_modules/@voximplant/react-native-foreground-service/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/home/evenset/Desktop/myant/mobile-app/node_modules/@voximplant/react-native-foreground-service/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/home/evenset/Desktop/myant/mobile-app/node_modules/@voximplant/react-native-foreground-service/android/build/intermediates/res/merged/release/values/values.xml:2714: error: resource android:attr/fontVariationSettings not found.
/home/evenset/Desktop/myant/mobile-app/node_modules/@voximplant/react-native-foreground-service/android/build/intermediates/res/merged/release/values/values.xml:2715: error: resource android:attr/ttcIndex not found.
error: failed linking references.
This issue appears to be resolved by setting compileSdkVersion 28
and targetSdkVersion 28
inside the android/build.gradle
file. I am not sure if there are any other side effects to this change however.
Edit: Noticed afterwards that there is a PR for this already open. Is there any intent to merge this @YuliaGrigorieva ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Known issues with Android Studio and Android Gradle Plugin
Find out about current known issues with Android Studio and the Android Gradle ... When you navigate to Build > Generate Signed Bundle...
Read more >There is an issue building android apk with docker #1628
I'm building an android project with docker on my MAC and it fails. Whenever I try bazel build -c opt --config=android_arm64 ...
Read more >Issue in building apk in flutter application - Stack Overflow
flutter build apk --release. whenever i run this command terminal shows that. I am using Linux. flutter: command not found. android ...
Read more >Troubleshooting Android Issues | Capacitor Documentation
Clean/Rebuild. Cleaning and rebuilding can fix a number of build issues: Android Clean and Build ... Android APK Failed. The solution is to...
Read more >Bazel Tutorial: Build an Android App
Note: There are known limitations on using Bazel for building Android apps. Visit the Github team-Android hotlist to see the list of known...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It worked, thank you! My mistake is that I was modifying my own apps’ build.gradle, not the correct one.
This should have been resolved by https://github.com/voximplant/react-native-foreground-service/pull/5