Android Studio-无法生成发布APK

时间:2019-12-10 15:35:02

标签: android apk release maven-release-plugin

我正在尝试生成一个已签名的发行版APK。尝试过几次,每次遇到错误

Gradle's dependency cache seems to be corrupt or out of sync.
Re-download dependencies and sync project (requires network)

即使在我重新下载依赖项并同步项目之后。我仍然遇到相同的错误,这是一个错误示例:

 Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.1/kotlin-compiler-26.5.1.jar'.
    at org.gradle.internal.resource.ResourceExceptions.failure(ResourceExceptions.java:74)
    at org.gradle.internal.resource.ResourceExceptions.getFailed(ResourceExceptions.java:57)
    at org.gradle.internal.resource.transfer.AccessorBackedExternalResource.withContentIfPresent(AccessorBackedExternalResource.java:146)
    at org.gradle.internal.resource.BuildOperationFiringExternalResourceDecorator$11.call(BuildOperationFiringExternalResourceDecorator.java:237)
    at org.gradle.internal.resource.BuildOperationFiringExternalResourceDecorator$11.call(BuildOperationFiringExternalResourceDecorator.java:229)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    at 

我什至手动下载了这个jar文件

https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.1/kotlin-compiler-26.5.1.jar

我可以将其放在项目文件夹中的什么位置?

0 个答案:

没有答案