安卓上谷歌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 23
    targetSdkVersion 35
    versionCode 10
    versionName "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_8
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
相关推荐
Doro再努力21 小时前
【Linux操作系统10】Makefile深度解析:从依赖推导到有效编译
android·linux·运维·服务器·编辑器·vim
Daniel李华21 小时前
echarts使用案例
android·javascript·echarts
做人不要太理性1 天前
CANN Runtime 运行时组件深度解析:任务调度机制、存储管理策略与维测体系构建逻辑
android·运维·魔珐星云
我命由我123451 天前
Android 广播 - 静态注册与动态注册对广播接收器实例创建的影响
android·java·开发语言·java-ee·android studio·android-studio·android runtime
朗迹 - 张伟1 天前
Tauri2 导出 Android 详细教程
android
lpruoyu1 天前
【Android第一行代码学习笔记】Android架构_四大组件_权限_持久化_通知_异步_服务
android·笔记·学习
独自破碎E1 天前
【BISHI15】小红的夹吃棋
android·java·开发语言
李堇1 天前
android滚动列表VerticalRollingTextView
android·java
lxysbly1 天前
n64模拟器安卓版带金手指2026
android
游戏开发爱好者81 天前
日常开发与测试的 App 测试方法、查看设备状态、实时日志、应用数据
android·ios·小程序·https·uni-app·iphone·webview