Я только что вытащил старый проект, это библиотека. Мне пришлось отредактировать это, чтобы создать новый aar и снова включить его в мой основной проект.
Когда я вытащил проект и попытался открыть его, я получил эту ошибку. «ОШИБКА: Плагин с идентификатором« com. android .library »не найден.»
У меня есть только один gradle (build.gradle), и именно этот.
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
lintOptions {
abortOnError false
}
defaultConfig {
minSdkVersion 18
targetSdkVersion 28
versionCode 1000000
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", 'BASE_URL', '"https://d.api.redlink.com.ar/redlink/desarrollo/"'
}
debug {
buildConfigField "String", 'BASE_URL', '"https://d.api.redlink.com.ar/redlink/desarrollo/"'
}
}
configurations {
retrofit
}
}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}