简体   繁体   English

当我尝试运行我的应用程序时无法编译值文件

[英]Failed to compile values file' when i try to run my app

I am building a note taking app and suddenly i'm getting this error when i try to run the app.我正在构建一个笔记应用程序,当我尝试运行该应用程序时突然出现此错误。

Error:错误:

Dependencies using groupId 'com.android.support' and 'androidx.*' can not be combined but found 'com.android.support:appcompat-v7:22.0.0' and 'androidx.constraintlayout:constraintlayout:2.0.4' incompatible dependencies使用 groupId 'com.android.support' 和 'androidx.*' 的依赖项无法合并,但发现 'com.android.support:appcompat-v7:22.0.0' 和 'androidx.constraintlayout:constraintlayout:20'不兼容。依赖关系

This is my build.graddle这是我的 build.graddle

plugins {
    id 'com.android.application'
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.bundgaard.rememory"
        minSdkVersion 26
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-auth:21.0.1'
    implementation 'com.google.firebase:firebase-storage:20.0.0'
    implementation 'com.google.firebase:firebase-firestore:23.0.1'
    implementation 'org.jetbrains:annotations:21.0.1'
    implementation 'co.roverlabs:picasso:2.5.2'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation platform('com.google.firebase:firebase-bom:28.0.1')
}

I can't figure out where theese two groupId's clash...我不知道这两个 groupId 的冲突在哪里......

co.roverlabs:picasso:2.5.2 is a very out-of-date fork of Square's Picasso . co.roverlabs:picasso:2.5.2Square 的 Picasso的一个非常过时的分支。 It has dependencies on similarly out-of-date support libraries from Google.它依赖于来自 Google 的类似过时的支持库。 Switching to an official Picasso release may help, particularly if it is one that is up to date.切换到毕加索的官方版本可能会有所帮助,特别是如果它是最新的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试运行它时,我的应用程序不断崩溃(新的) - My app keeps crashing when i try to run it (New to this) 当我尝试模拟我的应用程序时出错 - Error when I try to simulate my app 当我尝试在 Mobile 或 Android Studio 中打开我的应用程序时。 它说无法读取应用程序数据未能启动应用程序 - When I try to open my app in Mobile or Android Studio. It says cannot read app data failed to launch app 当我尝试通过拖放运行我的Android应用程序时遇到意外错误 - Getting an unexpected error when I try to run my Android app with drag and drop 当我尝试在 AVD 模拟器上运行我的应用程序时“[AppName] 停止工作” - "[AppName] stopped working" when I try to run my app on an AVD emulator Flutter:当我尝试运行从 github 克隆的 flutter 应用程序时,但构建失败,有人可以告诉我如何解决吗? - Flutter : when i try to run flutter app that i clone from github, but the build failed, could someone inform me how to solve it? 当我在jar文件上运行时,我的应用程序中未显示Unicode - Unicode not shown in my app when i run on jar file 当我将我的 java 应用程序作为服务运行时,日志文件没有更新 - Log file not updating when I run my java app as a service 尝试运行我的应用程序时粘贴JSON时出现问题,我收到以下错误消息:JSONObject jsonObject = new JSONObject(result); - Problem in pasing json when I try to run my app I get error from:JSONObject jsonObject = new JSONObject(result); 它在我运行应用程序时重启我的应用程序 - it restart my app when I run the app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM