【发布时间】:2020-12-22 14:45:37
【问题描述】:
我正在尝试运行我的应用程序,但此错误出现在我的终端中。我之前在使用 SDK 时遇到了一些问题,我正在更改 build.gradle 文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.findProperty("android.compileSdkVersion") as Integer
defaultConfig {
targetSdkVersion findProperty("android.targetSdkVersion") as Integer
minSdkVersion findProperty("android.minSdkVersion") as Integer
applicationId findProperty("android.applicationId")
versionCode findProperty("android.minSdkVersion") as Integer
versionName findProperty("android.versionName")
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}}
dependencies {
implementation 'com.android.support:appcompat-v7:30.0.0'
implementation(name:'projA', ext:'aar')
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'
}
如果你有什么建议,我能做什么,请帮助我。
【问题讨论】:
-
implementation(name:'projA', ext:'aar')应该从哪里解决这个依赖关系? -
来自 build.gradle 文件
-
不,需要在(待配置的)存储库中的某处有一个文件
projA.aar才能完成这项工作。这可能是另一个项目构建的输出?
标签: java android android-studio development-environment