apply plugin: 'com.android.application' android { compileSdkVersion 33 defaultConfig { applicationId "com.example.simulatepositioning" minSdkVersion 15 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation 'com.amap.api:3dmap:9.2.0' implementation 'com.amap.api:search:9.2.0' implementation 'com.amap.api:location:6.1.0' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.cardview:cardview:1.0.0' testImplementation 'junit:junit:4.12' implementation 'com.android.volley:volley:1.2.1' implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'liji.library.dev:citypickerview:0.7.0' androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation ('com.amap.api:location:6.3.0') { exclude group: 'com.amap.api', module: '3dmap' } configurations { all*.exclude group:'com.google.code.gson', module:'gson' //exclude排除某项库 } } dependencies { implementation 'com.android.support:support-annotations:28.0.0' //noinspection GradleCompatible implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' }