Hos*_*san 5 android gradle android-gradle-plugin gradle-play-publisher
在我将 android studio 更新到 3.4.2 和 gradle 后,当我运行此行时
gradlew publishApkappNameRelease
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
* What went wrong: Some problems were found with the configuration of task ':app:generateappNameReleasePlayResources'.
> File 'E:\Projects\packagename\app\src\main\play' specified for property '$1' does not exist.
> File 'E:\Projects\packagename\app\src\appName\play' specified for property '$2' does not exist.
> File 'E:\Projects\packagename\app\src\release\play' specified for property '$3' does not exist.
> File 'E:\Projects\packagename\app\src\appNameRelease\play' specified for property '$4' does not exist.
* 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
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.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2m 47s 56 actionable tasks: 55 executed, 1 from cache
Run Code Online (Sandbox Code Playgroud)
注意:此行用于自动发布 apk 使用
apply plugin: 'com.github.triplet.play'
classpath 'com.github.triplet.gradle:play-publisher:1.1.5'
Run Code Online (Sandbox Code Playgroud)
当我运行此命令行时同样gradlew --recompile-scripts出现错误
Unknown command-line option '--recompile-scripts'
Run Code Online (Sandbox Code Playgroud)
这些命令在更新之前运行良好。
更新:
当我尝试将 Triplet.play 更新到任何版本(2.2.1 - 2.2.0 - 2.1.1 - 2.1.0 - 2.0.0 - 2.0.0-rc2)时,我收到此错误
Could not find com.github.triplet.gradle:play-publisher:2.2.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.pom
- https://dl.google.com/dl/android/maven2/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.jar
- https://jcenter.bintray.com/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.pom
- https://jcenter.bintray.com/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.jar
- https://repo.maven.apache.org/maven2/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.pom
- https://repo.maven.apache.org/maven2/com/github/triplet/gradle/play-publisher/2.2.1/play-publisher-2.2.1.jar
Required by:
project :
Run Code Online (Sandbox Code Playgroud)
显然,这可以通过按照此处的 GitHub 问题将 play-publisher 插件的版本从 1.1.5 升级到 2.1.1 来解决: https: //github.com/Triple-T/gradle-play-publisher/issues/第532章
但是,该插件的较新版本似乎并非在所有工件存储库上都可用。我在这里找到了它,其中有明确的步骤:https ://plugins.gradle.org/plugin/com.github.triplet.play
最后,建议您再次检查他们的 GitHub 页面,以确保您当前拥有的配置仍然兼容: https: //github.com/Triple-T/gradle-play-publisher
关于gradlew --recompile-scripts,它已在新版本中被弃用并删除,因为大多数时候 gradle 守护进程正在运行并忽略此选项。更多信息在这里: https: //github.com/gradle/gradle/issues/1425
| 归档时间: |
|
| 查看次数: |
2768 次 |
| 最近记录: |