Building an Capacitor Android App inside Docker Container keeps asking for Android SDK Build-Tools 30.0.3 #7254
Unanswered
Christian1984
asked this question in
Q&A
Replies: 1 comment
-
Hello! I run into same issue and have workaround to this.
What i did to fix issue is:
In the end I finished with succesfull build aab file with ./gradlew bundleRelease |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build an Android Debug-APK from our Capacitor app inside a Docker container.
My image looks like this:
I have upgraded our app from Capacitor 4 to 5, and thus Gradle to v8.0.2
Whenever I run the build I get
When I try to install
build-tools;30.0.3
I getwhich appears to be a known bug that has been fixed with build-tools > 30.0.3 (741g/android-emulator-m1-preview#14)
But then, how can I force the build to use other build tools than 30.0.3?
I tried setting the
buildToolsVersion
properties insideandroid/app/build.gradle
andandroid/capacitor-cordova-android-plugins/build.gradle
(within theandroid {}
-section), but they this doesn't change anything. I also did a full text search for "30.0.3" which didn't yield any results.Running
./gradlew assembleDebug
instead of using the globally installedgradle
didn't change anything, either.How can I force gradle to use a specific version of the Android Platform Tools in the context of a Capacitor app? What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions