Android:友盟分享 AS开发配置

来源:互联网 发布:linux审计日志分析 编辑:程序博客网 时间:2024/06/06 21:18

Android:友盟分享 AS开发配置

使用Android studio 开发工具 加入友盟分享,可能会遇到分享失败、微信 调用不起来,或者编译运行时 提示错误。可进行以下信息配置:

build.gradle 文件配置信息

apply plugin: ‘com.android.application’

android {
compileSdkVersion 23
buildToolsVersion “23.0.2”

defaultConfig {    applicationId "com.example.sange.myapplication"    minSdkVersion 15    targetSdkVersion 23    versionCode 1    versionName "1.0"    multiDexEnabled true}buildTypes {    release {        minifyEnabled false        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'    }}packagingOptions{    exclude'META-INF/DEPENDENCIES.txt'    exclude'META-INF/LICENSE.txt'    exclude'META-INF/NOTICE.txt'    exclude'META-INF/NOTICE'    exclude'META-INF/LICENSE'    exclude'META-INF/DEPENDENCIES'    exclude'META-INF/notice.txt'    exclude'META-INF/license.txt'    exclude'META-INF/dependencies.txt'    exclude'META-INF/LGPL2.1'}

}

dependencies {
compile fileTree(include: [‘*.jar’], dir: ‘libs’)
testCompile ‘junit:junit:4.12’
compile ‘com.android.support:support-v4:23.+’
compile ‘com.android.support:design:23.1.1’
compile files(‘libs/umeng_social_sdk.jar’)
compile files(‘libs/SocialSDK_QQZone_3.jar’)
compile files(‘libs/SocialSDK_WeiXin_1.jar’)
}

0 0
原创粉丝点击