apply plugin: 'com.android.application' /*gump test config,you could ignore it * gump打包测试使用,你可以自行配置,或者直接删除这部分内容 */ def keystorePSW = '' def keystoreAlias = '' def keystoreAliasPSW = '' // default keystore file, PLZ config file path in local.properties def keyfile = file('s.keystore.temp') Properties properties = new Properties() // local.properties file in the root director properties.load(project.file('local.properties').newDataInputStream()) def keystoreFilepath = properties.getProperty("keystore.path") if (keystoreFilepath) { keystorePSW = properties.getProperty("keystore.password") keystoreAlias = properties.getProperty("keystore.alias") keystoreAliasPSW = properties.getProperty("keystore.key_passwd") keyfile = file(keystoreFilepath) } /* * gump test config,you could ignore it * gump打包测试使用,你可以自行配置,或者直接删除这部分内容 */ repositories { flatDir { dirs 'libs' } } android { compileSdkVersion 22 buildToolsVersion "26.0.2" signingConfigs { release { storeFile keyfile storePassword keystorePSW keyPassword keystoreAliasPSW keyAlias keystoreAlias } } defaultConfig { minSdkVersion 9 targetSdkVersion 22 versionCode 5 versionName "1.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" signingConfig signingConfigs.release } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' zipAlignEnabled true } debug { signingConfig signingConfigs.release } } lintOptions { abortOnError false } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:22.2.0' //微信 compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' // compile project(':GameSDK') compile(name: 'GameSDK-release4.3.4', ext: 'aar') }