android - 如何解决创建签名 APK 文件的问题?
问题描述
我想在 Google Play 商店中发布我的应用程序,但我未能创建所需的“app-release.apk”。我得到的错误如下:
找不到 org.jetbrains.trove4j:trove4j:20160824。在以下位置搜索:
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/google/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/google/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/android/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/C:/Users/Albrecht/AppData/Local/Android/Sdk/extras/android/m2repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
file:/C:/Users/Albrecht/.m2/repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
file:/C:/Users/Albrecht/.m2/repository/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://oss.sonatype.org/content/repositories/releases/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://oss.sonatype.org/content/repositories/releases/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
https://maven.google.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
https://maven.google.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
Required by:
project :android > com.android.tools.lint:lint-gradle:26.1.4 > com.android.tools.external.com-intellij:intellij-core:26.1.4
我的 build.gradle 文件:
buildscript {
repositories {
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://maven.google.com" }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0'
ext {
appName = "ShapeRecognisingGame"
gdxVersion = '1.9.8'
roboVMVersion = '2.3.3'
box2DLightsVersion = '1.4'
ashleyVersion = '1.7.3'
aiVersion = '1.8.0'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://maven.google.com" }
}
}
project(":desktop") {
apply plugin: "java"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
}
}
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
compile "com.google.android.gms:play-services-ads:15.0.1"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
}
}
project(":core") {
apply plugin: "java"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
}
}
我已经检查了这个错误的其他几个解决方案。但是,它们都不适合我。
解决方案
推荐阅读
- matplotlib - statsmodels:IntegrationWarning:已达到最大细分数(50)
- c# - 无法翻译 LINQ 表达式 - C#
- pandas - Pandas 读取带有重复标题行的 csv
- php - 如何隐藏或替换
- WooCommerce 相关模板中的 html 标签
- php - Symfony 5 全局动态配置文件
- python - 从 VS Code Python 调试器运行命令时查看错误回溯
- python - 使用深度学习对多个类别进行特征提取
- postgresql - PostgreSQL 自定义登录消息
- docker - 为多个用户实现 Docker 隔离
- javascript - 如何检测对象数组中的重复项?