前提:本项目是测试版,购物车没有用接口,只是实现了逻辑
依赖
apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.example.administrator.myapplication111" minSdkVersion 16 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' } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' //okhttp implementation 'com.squareup.okhttp3:okhttp:3.6.0' implementation 'com.squareup.okio:okio:1.11.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0' //gson implementation 'com.google.code.gson:gson:2.8.2' //xrecyclerview依赖 compile 'com.jcodecraeer:xrecyclerview:1.3.2' //Banner包的导入 compile 'com.youth.banner:banner:1.4.10' //Glide: compile 'com.github.bumptech.glide:glide:3.7.0' //recyclerview依赖 implementation 'com.android.support:recyclerview-v7:26.1.0' //pulltorefresh: compile 'com.github.userswlwork:pull-to-refresh:1.0.0' //tablayout: compile 'com.android.support:design:26+' //eventbus compile 'org.greenrobot:eventbus:3.0.0' //视频依赖 compile 'cn.jzvd:jiaozivideoplayer:6.2.3' //fresco图片依赖 compile 'com.facebook.fresco:fresco:1.5.0' compile 'com.facebook.fresco:animated-gif:1.5.0' //加载gif动图需添加此库 compile 'com.facebook.fresco:animated-webp:1.5.0' //加载webp动图需添加此库 compile 'com.facebook.fresco:webpsupport:1.5.0' } configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '27.1.1' } } } }