情况:
我打算使用Java库,我只有一个来自Maven存储库的AAR文件,但我需要JAR文件.
背景故事:
我试图编译一个库,但它的Gradle结构不稳定.所以我要求一个编译的jar文件,它的开发人员从一些Maven存储库递给我一个aar文件(开发人员无法编译自己的项目).Gradle配置很乱,它依赖于多个库,Gradle抛出了一些例外.
我尝试在我的IDEA IDE中使用它,但它看不到它.一个库项目应该能够编译成一个jar文件,对吧?
问题:
我该怎么做才能将AAR文件转换为JAR文件?
我有一个项目,其中compileSdkVersion和 targetSdkVersion是25.当我尝试将版本升级到26时,我收到以下错误:
Could not find com.android.support:support-annotations:26.1.0.
Required by:
project :app
project :app > com.android.support:support-compat:26.1.0
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager
Run Code Online (Sandbox Code Playgroud)
我打开了Android SDK Manager,但找不到要安装的Android Support Repository.
我该如何解决这个问题?
这是我的应用程序和项目gradle文件:
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'io.fabric'
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
defaultConfig {
//my default config
}
signingConfigs {
config {
//config
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
debug …Run Code Online (Sandbox Code Playgroud)