Universal Android Studio Gradle file (e-commerce merchant Edition, two gradle different)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.