Module's Gradle file
Apply plugin: ' Com.android.application '
Android {
Compilesdkversion 26
Defaultconfig {
ApplicationID "Com.culturer.guishi_shoper"
Minsdkversion 23
Targetsdkversion 26
Versioncode 1
Versionname "1.0"
Testinstrumentationrunner "Android.support.test.runner.AndroidJUnitRunner"
}
Buildtypes {
Release {
Minifyenabled false
Proguardfiles getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro '
}
}
compileoptions {
Targetcompatibility 1.8
Sourcecompatibility 1.8
}
}
dependencies {
Implementation Filetree (dir: ' Libs ', include: [' *.jar '])
Implementation ' com.android.support:appcompat-v7:26.1.0 '
Implementation ' com.android.support:design:26.1.0 '
Implementation ' com.android.support.constraint:constraint-layout:1.1.2 '
Testimplementation ' junit:junit:4.12 '
3d map
Compile ' com.amap.api:3dmap:6.1.0 '
Navigation
Compile ' com.amap.api:navi-3dmap:6.1.0 '
Search
Compile ' com.amap.api:search:6.1.0 '
Positioning
Compile ' com.amap.api:location:3.8.0 '
Rxtools Tool Set
Compile ' com.github.vondear:rxtools:v1.7.8.3 '
HTTP Library
Compile ' com.kymjs.rxvolley:rxvolley:2.0.0 '
If Use Okhttp function
Compile ' com.kymjs.rxvolley:okhttp:1.1.4 '
Or
Compile ' com.kymjs.rxvolley:okhttp3:1.1.4 '
Add Gson Dependency
Compile ' com.google.code.gson:gson:2.8.2 '
Androidtestimplementation ' com.android.support.test:runner:1.0.2 '
Androidtestimplementation ' com.android.support.test.espresso:espresso-core:3.0.2 '
}
-************************************************************************************************************** *******************-
Project's Gradle file
Apply plugin: ' Com.android.application '
Android {
Compilesdkversion 26
Defaultconfig {
ApplicationID "Com.culturer.guishi_shoper"
Minsdkversion 23
Targetsdkversion 26
Versioncode 1
Versionname "1.0"
Testinstrumentationrunner "Android.support.test.runner.AndroidJUnitRunner"
}
Buildtypes {
Release {
Minifyenabled false
Proguardfiles getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro '
}
}
compileoptions {
Targetcompatibility 1.8
Sourcecompatibility 1.8
}
}
dependencies {
Implementation Filetree (dir: ' Libs ', include: [' *.jar '])
Implementation ' com.android.support:appcompat-v7:26.1.0 '
Implementation ' com.android.support:design:26.1.0 '
Implementation ' com.android.support.constraint:constraint-layout:1.1.2 '
Testimplementation ' junit:junit:4.12 '
3d map
Compile ' com.amap.api:3dmap:6.1.0 '
Navigation
Compile ' com.amap.api:navi-3dmap:6.1.0 '
Search
Compile ' com.amap.api:search:6.1.0 '
Positioning
Compile ' com.amap.api:location:3.8.0 '
Rxtools Tool Set
Compile ' com.github.vondear:rxtools:v1.7.8.3 '
HTTP Library
Compile ' com.kymjs.rxvolley:rxvolley:2.0.0 '
If Use Okhttp function
Compile ' com.kymjs.rxvolley:okhttp:1.1.4 '
Or
Compile ' com.kymjs.rxvolley:okhttp3:1.1.4 '
Add Gson Dependency
Compile ' com.google.code.gson:gson:2.8.2 '
Androidtestimplementation ' com.android.support.test:runner:1.0.2 '
Androidtestimplementation ' com.android.support.test.espresso:espresso-core:3.0.2 '
}
Universal Android Studio Gradle file (e-commerce merchant Edition, two gradle different)