我尝试在react-native中获取apk,但是它没有给我任何东西。 APK文件中的发行文件为空,grandlew bundleRelease
完成后显示:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
我找不到解决此问题的方法
我的signingConfigs位于app / build.grandle 中:
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
在gradle.properties中的:
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=password
MYAPP_UPLOAD_KEY_PASSWORD=password
创建my-upload-key.keystore后,我从C:\ Program Files \ Java \ jdk1.8.0_181 \ bin复制my-upload-key.keystore并粘贴到android / app。有什么问题吗?
答案 0 :(得分:0)
默认情况下,Gradle不会显示所有警告(例如,弃用警告)。取而代之的是,Gradle将收集它们并在构建结束时呈现摘要。 尝试通过gradle.properties指定警告模式,如下所示:
org.gradle.warning.mode = all
请告诉我们是否可行。