Crouton depends on libraries but is not a library itself

前端 未结 2 1364
时光说笑
时光说笑 2020-12-29 03:34

I\'m using Android Studio 0.6.1, with Crouton library and today after gradle sync I got next error:

Error:A problem occurred configuring root project \'proje         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 03:55

    My solution according to @Revedko answer, using @aar and change all supports to version lower than 21 -> 20.+

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.loopj.android:android-async-http:1.+'
        compile "com.bugsense.trace:bugsense:3.5"
        compile('de.keyboardsurfer.android.widget:crouton:1.8.4@aar') {
            exclude group: 'com.google.android', module: 'support-v4'
        }
        compile 'com.android.support:appcompat-v7:20.+'
        compile 'com.google.android.gms:play-services:5.0.77'
    }
    

提交回复
热议问题