android studio导入第三方项目错误排查

  • Error:Unknown host 'android.oa.com'. You may need to adjust the proxy settings in Gradle.
  1. gradle/wrapper/gradle-wrapper.properties
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http://android.oa.com/gradle/gradle-2.6-all.zip 
#修改这个地址,可以新建工程找到可用地址或者google吧。
  • Error:failed to find Build Tools revision 23.0.2 1.app/build.gradle
apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "23.0.2" //修改为本地环境可以用的版本例如25.0.2

    defaultConfig {
        applicationId "net.sourceforge.simcpux"
        minSdkVersion 4
        targetSdkVersion 4
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    signingConfigs {
        debug {
            storeFile file("../debug.keystore")
        }
    }
}

dependencies {
    compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.1.6'
}

  • file-seting-build,EXECUTION,DEPLOYMENT-GRADLE-GLOBAL GRADLE SETINGS-OFFINE WORK

转载于:https://my.oschina.net/singyen/blog/1532171

你可能感兴趣的:(android studio导入第三方项目错误排查)