将ASNE集成添加到build.gradle

时间:2014-10-20 11:20:55

标签: android build.gradle

我是Android Studio和gradle的新手。我正在尝试通过gradle add in build.gradle

集成ASNE
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:21.0.0'

    compile 'com.android.support:appcompat-v7:21.0.0'

    compile 'com.github.asne:asne-facebook:0.2.1'
    compile 'com.github.asne:asne-twitter:0.2.0'
    compile 'com.github.asne:asne-googleplus:0.2.1'
    compile 'com.github.asne:asne-linkedin:0.2.1'
    compile 'com.github.asne:asne-instagram:0.2.1'
    compile 'com.github.asne:asne-vk:0.2.1'
    compile 'com.github.asne:asne-odnoklassniki:0.2.1'
}

但是当我构建proyect时,我收到了这个错误:

Error:Execution failed for task ':ap:processDebugManifest'.
> Manifest merging failed. See console for more info.
/Users/moskis/AndroidStudioProjects/Manager/Manager/build/exploded-aar/com.google.android.gms/play-services/4.3.23/AndroidManifest.xml
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.
Error:(1) Could not find element /manifest/application.

我该如何解决这个问题? THX

1 个答案:

答案 0 :(得分:0)

问题已修复导入版本0.3.3

compile 'com.github.asne:asne-facebook:0.3.3'
compile 'com.github.asne:asne-twitter:0.3.3'
compile 'com.github.asne:asne-googleplus:0.3.3'
compile 'com.github.asne:asne-linkedin:0.3.3'
compile 'com.github.asne:asne-instagram:0.3.3'
compile 'com.github.asne:asne-vk:0.3.3'
compile 'com.github.asne:asne-odnoklassniki:0.3.3'