請將您複製的版本名稱貼到以下網址中,並指定目標作業系統:https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/aapt2-version/aapt2-aapt2-version-[windows | linux | osx].jar
例如,如要下載 Windows 3.2.0-alpha18-4804415 版本,請使用以下這個檔案:https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.2.0-alpha18-4804415/aapt2-3.2.0-alpha18-4804415-windows.jar
android {
defaultConfig { ... }
signingConfigs {
create("release") {
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
storeFile = file("my-release-key.jks")
storePassword = "password"
keyAlias = "my-alias"
keyPassword = "password"
buildTypes {
getByName("release") {
signingConfig = signingConfigs.getByName("release")
Groovy
android {
defaultConfig { ... }
signingConfigs {
release {
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
storeFile file("my-release-key.jks")
storePassword "password"
keyAlias "my-alias"
keyPassword "password"
buildTypes {
release {
signingConfig signingConfigs.release