Now you can execute gradle assembleDebug etc. If a command-line Gradle build complains of licenses not being accepted, accept all licenses with this command: yes | sdkmanager -licenses Use Brew to Install Gradle and OpenJDK brew install gradle # includes OpenJDK Sdkmanager -install "platforms android-30" "ndk 529" sdkmanager -licenses sdkmanager -install "platform-tools" "build-tools 30.0.2" Be sure to edit the file for your apps module. Be sure to have set ANDROIDSDKPATH to the actual root path where you've installed the SDK (i.e.: /opt/android-sdk ), or just put the path directly (i.e. Here's a more recent set of essential packages to install. Note: Android Studio projects contain a top-level adle file and a adle file for each module. Mv ~/Downloads/cmdline-tools ~/Library/Android/sdk/cmdline-tools/latest sdkmanager -install This location is compatible with IntelliJ IDEA (confirmed) and Android Studio (unconfirmed): mkdir -p ~/Library/Android/sdk/cmdline-tools Move and rename the unzipped cmdline-tools to this different location.
0 Comments
Leave a Reply. |