小编Yee*_*haw的帖子

错误:程序类型已存在:androidx.versionedparcelable.ParcelImpl

我正在尝试添加此https://github.com/ArthurHub/Android-Image-Cropper,但是当我添加它时,出现此错误“错误:程序类型已存在:androidx.versionedparcelable.ParcelImpl”

我已经附上了项目gradle和应用gradle。(我是android开发的新手,不确定如何解决。)

我认为这可能与

implementation "com.android.support:appcompat-v7:${supportLibVersion}"
implementation "com.android.support:design:${supportLibVersion}"
Run Code Online (Sandbox Code Playgroud)

但是这些在我的活动布局之一中用于TextInputLayout。任何帮助将不胜感激。

  // Top-level build file where you can add configuration options common to all sub-projects/modules.

    buildscript {

        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.2.1'
            classpath 'com.google.gms:google-services:4.0.0'

            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }

    allprojects {
        repositories {
            google()
            jcenter()
            maven{
               url  "https://maven.google.com"
            }
        }
    }

    task clean(type: Delete) {
        delete rootProject.buildDir
    }
Run Code Online (Sandbox Code Playgroud)

应用程式Gradle:

apply plugin: 'com.android.application' …
Run Code Online (Sandbox Code Playgroud)

android compiler-errors gradle androidx

6
推荐指数
1
解决办法
9852
查看次数

标签 统计

android ×1

androidx ×1

compiler-errors ×1

gradle ×1