安卓上谷歌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
    }
相关推荐
珹洺5 小时前
Java-Spring入门指南(二十五)Android 的历史,认识移动应用和Android 基础知识
android·java·spring
大白的编程日记.5 小时前
【MySQL】数据库表的CURD(二)
android·数据库·mysql
介一安全6 小时前
【Frida Android】基础篇4:Java层Hook基础——调用静态方法
android·网络安全·逆向·安全性测试·frida
怪兽20146 小时前
主线程 MainLooper 和一般 Looper 的异同?
android·面试
洋不写bug7 小时前
数据库的创建,查看,修改,删除,字符集编码和校验操作
android·数据库·adb
2501_915909068 小时前
iOS App 上架全流程详解:证书配置、打包上传、审核技巧与跨平台上架工具 开心上架 实践
android·ios·小程序·https·uni-app·iphone·webview
2501_915106328 小时前
iOS 26 系统流畅度测试实战分享,多工具组合辅助策略
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915918418 小时前
开发 iOS 应用全流程指南,环境搭建、证书配置与跨平台使用 开心上架 上架AppStore
android·ios·小程序·https·uni-app·iphone·webview
灵芸小骏8 小时前
Rokid应用实践:基于CXR-M与CXR-S SDK,打造眼镜与手机协同的‘智能随行记录仪’
android