安卓上谷歌35版本
1.SDK Manager里面的
Android15.0 35-ext15 这个版本,否则编译不过
2.classpath 'com.android.tools.build:gradle:8.1.0'
3.distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4.build.gradle里面
compileSdk 35 namespace 'com.tjxzhd.jhtgjbgzen.gp' defaultConfig {applicationId "com.tjxzhd.jhtgjbgzen.gp"minSdkVersion 23targetSdkVersion 35versionCode 10versionName "10"testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"externalNativeBuild {ndk {abiFilters "arm64-v8a", "armeabi-v7a" // 匹配你编译的架构}} }
5.这个不能是VERSION_1_8,是VERSION_17
compileOptions { // sourceCompatibility JavaVersion.VERSION_1_8 // targetCompatibility JavaVersion.VERSION_1_8sourceCompatibility JavaVersion.VERSION_17targetCompatibility JavaVersion.VERSION_17}