У меня возникла ошибка:
Код: Выделить всё
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
> java.lang.NullPointerException (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Running Gradle task 'bundleRelease'... 5,7s
Gradle task bundleRelease failed with exit code 1

< /p>
файл key.properties:
Код: Выделить всё
storePassword=myPassWord
keyPassword=myPassWord
keyAlias=upload
storeFile=./keys.jks
Код: Выделить всё
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
Код: Выделить всё
and this inside the android:
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
не знаю, почему я сделал неправильно...
Я пробовал через Google, но безуспешно. Воссоздать ключ, ничего.
Подробнее здесь: https://stackoverflow.com/questions/754 ... ion-failed
Мобильная версия