将gradle依赖项与aar捆绑在一起

时间:2016-11-16 06:36:10

标签: android android-gradle aar

我有一个项目项目A ,它具有以下依赖项:

dependencies {
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support:recyclerview-v7:24.0.0'
    compile 'com.android.support:cardview-v7:24.0.0'
    compile 'com.android.support:palette-v7:24.0.0'
    compile 'com.google.android.gms:play-services-gcm:9.4.0'
    compile 'com.google.android.gms:play-services-auth:9.4.0'
    compile 'com.google.android.gms:play-services-plus:9.4.0'
    compile 'com.google.android.gms:play-services-location:9.4.0'
    compile 'com.android.support:customtabs:24.0.0'
    compile ('com.hannesdorfmann.smoothprogressbar:library:1.0.0'){
        transitive = true
    }
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    compile 'jp.wasabeef:blurry:2.0.2'
    compile 'com.karumi:dexter:2.3.1'
    compile 'io.card:android-sdk:5.4.0'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.cocosw:bottomsheet:1.+@aar'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'me.leolin:ShortcutBadger:1.1.3'
    compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
    compile 'com.facebook.android:facebook-android-sdk:4.13.2'
    compile 'xyz.danoz:recyclerviewfastscroller:0.1.3'
    compile 'uk.co.chrisjenx:calligraphy:2.2.0'
    compile 'com.android.support:multidex:1.0.1'
//    compile 'joda-time:joda-time:2.9.3'
    compile 'com.github.clans:fab:1.6.3'
    compile files('libs/jsevaluator.jar')
    compile files('libs/libphonenumber-7.0.2.jar')
    compile project(':zoneOrchestra')
    compile project(':scrambledkeyboard')
    compile project(':datelibrary')
    compile project(':phoneNumberValidator')
    compile project(':library')
    compile project(':inputtypepicker')
    compile project(':pagerIndicator')
    compile project(':persistentSearch')
    compile('com.github.KingsMentor:IntentManip:v1.0.2') {
        exclude group: 'com.android.support'
    }
    compile('com.twitter.sdk.android:tweet-composer:0.8.0@aar')
            {
                transitive = true;
            }

    compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
        transitive = true;
    }

}

项目捆绑到 project.aar ,它应该作为其他项目的依赖项。

问题是,当 project.aar 添加到另一个项目时,它无法构建。它需要它的依赖性,由于某些原因它不与它捆绑在一起。

如何确保将这些依赖项与.aar文件捆绑在一起?

0 个答案:

没有答案
相关问题