Open yansh97 opened 7 years ago
provide your build.gradle
file contents
apply plugin: 'com.android.application' apply plugin: 'maven'
android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.java.group19" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }
lintOptions{
checkReleaseBuilds false
abortOnError false
}
buildTypes {
release {
minifyEnabled false
}
}
}
repositories { flatDir { dirs 'libs' } }
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile files('libs/Msc.jar') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:26.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.squareup.okhttp3:okhttp:3.9.0' compile 'com.android.support:design:26.+' compile 'de.hdodenhof:circleimageview:2.+' compile 'com.android.support:recyclerview-v7:26.+' compile 'com.android.support:cardview-v7:26.+' compile 'com.github.bumptech.glide:glide:3.+' compile 'org.litepal.android:core:1.+' testCompile 'junit:junit:4.12' compile 'com.github.arimorty:floatingsearchview:2.1.1' compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+' repositories { maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } mavenCentral() } compile 'in.srain.cube:clog:1.0.2' compile 'in.srain.cube:cube-sdk:1.0.44.40-SNAPSHOT@aar' compile files('libs/MobCommons-2017.0823.1556.jar') compile files('libs/ShareSDK-SinaWeibo-3.0.2.jar') compile files('libs/ShareSDK-QQ-3.0.2.jar') compile files('libs/ShareSDK-Wechat-3.0.2.jar') compile files('libs/ShareSDK-Wechat-Core-3.0.2.jar') }
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { repositories { jcenter() } }
task clean(type: Delete) { delete rootProject.buildDir }
This function can't be called out com.android.support. It cause a compile error. What can I use to replace it?