首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android:错误:未能解决:硬视图影响模块:应用程序

Android:错误:未能解决:硬视图影响模块:应用程序
EN

Stack Overflow用户
提问于 2019-03-10 14:17:59
回答 1查看 1.6K关注 0票数 2

我必须将我的项目迁移到AndroidX以支持某个第三方库,但是当我尝试使用AndroidX提供的工具通过重构>迁移到AndroidX时,我总是会遇到这样的错误

代码语言:javascript
复制
ERROR: Failed to resolve: cardview Affected Modules: app

下面是我的依赖关系:

代码语言:javascript
复制
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
    implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha02'

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'

    implementation 'com.synnapps:carouselview:0.1.5'
    implementation 'com.amitshekhar.android:android-networking:1.0.2'
    implementation 'com.squareup.picasso:picasso:2.3.2'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.thoughtbot:expandablerecyclerview:1.3'
    implementation 'com.robertlevonyan.view:MaterialChipView:1.2.5'
    implementation 'com.github.tcking:giraffeplayer2:0.1.19-lazyLoad'
    implementation 'com.github.faruktoptas:FancyShowCaseView:1.1.0'
    implementation 'com.github.sundeepk:compact-calendar-view:3.0.0'
    implementation 'com.github.cdflynn:turn-layout-manager:v1.2'
    implementation 'com.github.takusemba:multisnaprecyclerview:1.3.3'
    implementation 'com.ramotion.cardslider:card-slider:0.3.0'
    implementation 'com.ramotion.circlemenu:circle-menu:0.3.2'
    //    implementation 'com.github.halilozercan:BetterVideoPlayer:1.2.alpha1'
    implementation 'com.github.ybq:Android-SpinKit:1.1.0'
    implementation 'com.budiyev.android:circular-progress-bar:1.2.2'
    implementation 'com.github.GrenderG:Toasty:1.3.1'
    implementation 'fm.jiecao:jiecaovideoplayer:5.7'
    implementation 'com.github.cdflynn:turn-layout-manager:v1.2'
    implementation 'io.github.yavski:fab-speed-dial:1.0.6'
    implementation 'com.github.yalantis:ucrop:2.2.2'

    //animation library
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'
    //    implementation 'com.facebook.android:account-kit-sdk:4.37.0'
    //    implementation 'com.google.android.gms:play-services-auth:16.0.1'
}
EN

回答 1

Stack Overflow用户

发布于 2019-04-20 07:42:36

迁移到android x有奇怪的错误,将android studio升级到最新版本可能会解决这个问题。

此外,您还可以在android.enablejetifier中将false设置为gradle.properties,您不会看到这个错误,但是您应该使用androidx库

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55088592

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档