You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Millet-note/myapplication/build.gradle

77 lines
1.9 KiB

apply plugin: 'com.android.application'
android {
compileSdkVersion 29
useLibrary 'org.apache.http.legacy'
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 29
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
// }
//}
sourceSets {
main {
res.srcDirs = [
'src/main/res/layout/fragment',
'src/main/res/layout',
'src/main/res'
]
}
}
}
apply plugin: 'com.android.application'
// 添加在第1行下面
buildscript {
repositories {
google()
jcenter()
mavenCentral() // or jcenter()
}
dependencies {
// implementation project(':myapplication')
classpath 'com.android.tools.build:gradle:3.5.3' //last version Jan 2016
System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
//implementation "com.android.support:support-v4:{26.+}"
}
}
allprojects {
repositories {
google()
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}