question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues building Android APK

See original GitHub issue

Attempting 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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
beige229commented, Jun 5, 2019

It worked, thank you! My mistake is that I was modifying my own apps’ build.gradle, not the correct one.

0reactions
Connor-Y-Evensetcommented, Jul 22, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found