gpt4 book ai didi

android - Android Studio中一致的Gradle错误

转载 作者:行者123 更新时间:2023-12-03 05:50:22 25 4
gpt4 key购买 nike

嗨,我不确定我的android studio有什么问题,但是我已经尝试了一切,但不确定这个错误是什么意思。

我刚刚卸载并重新安装了android studio。

这是gradle错误的屏幕截图:

GradleError

有没有人看过这个错误?

app.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.almac.tracker"
minSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.bmarrdev:android-DecoView-charting:v1.2'
compile 'com.google.firebase:firebase-ads:11.6.2'

compile 'com.google.android.gms:play-services-ads:11.6.2'
compile 'joda-time:joda-time:2.9.9'
compile 'com.akexorcist:RoundCornerProgressBar:2.0.3'
compile 'com.github.lzyzsd:circleprogress:1.2.1'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
testCompile 'junit:junit:4.12'

}

样式:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorAccent</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorPrimary">@color/common_google_signin_btn_text_light_default
</item>
</style>

最佳答案

确保您的AppCompat文件中具有app.gradle依赖项

dependencies{
...
implementation 'com.android.support:appcompat-v7:27.0.2'
}

关于android - Android Studio中一致的Gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48154915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com