1 New project
修改build.gradle
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.5.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() google() maven{ url "https://jitpack.io"} maven { url 'https://maven.google.com' } } } task clean(type: Delete) { delete rootProject.buildDir }
修改 app 对应的grade
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion '25.0.0' useLibrary 'org.apache.http.legacy' defaultConfig { applicationId "com.gizwits.opensource.appkit" minSdkVersion 18 targetSdkVersion 24 versionCode 1 versionName "2.5.1.072715" multiDexEnabled true ndk { abiFilters "armeabi-v7a", "x86", "armeabi" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } lintOptions { checkReleaseBuilds false abortOnError false } compileOptions { sourceCompatibility = 1.6 targetCompatibility = 1.6 } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.2.1' compile files('libs/BLEasyConfig.jar') compile files('libs/easylink2.0.jar') compile files('libs/GizWifiSDK.jar') compile files('libs/jpush-android-2.1.5.jar') compile files('libs/Lark7618SDK_noudp1606031910_0101.jar') compile files('libs/libammsdk.jar') compile files('libs/libForEElink.jar') compile files('libs/LSFSK_1.0.jar') compile files('libs/ltlink2.jar') compile files('libs/mta-sdk-1.6.2.jar') compile files('libs/OneShotConfig.jar') compile files('libs/open_sdk_r5756.jar') compile files('libs/pushservice-5.6.0.30.jar') compile files('libs/simpleconfigwizardlib.jar') compile files('libs/xUtils-2.6.14.jar') compile files('libs/zxing.jar') compile 'com.android.support:design:25.3.0' compile 'com.yanzhenjie:permission:1.0.5' }
修改grade
app->src->main 修改AndroidManifest
删除
<!-- <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="25" /> -->
标签:files,jar,compile,Studio,libs,Android,com,android,SDK From: https://www.cnblogs.com/xgth/p/14878997.html