安卓上谷歌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
    }
相关推荐
KevinCyao2 小时前
安卓android视频短信接口怎么集成?AndroidStudio视频短信开发指南
android
Android出海2 小时前
安卓侧载强制24小时冷却,第三方APK直投买量面临停摆
android·google play·app出海·android出海·android侧载·谷歌开发者·android开发者
kerli2 小时前
Compose 组件:LazyColumn 核心参数与 key/contentType 详解
android·前端
开发者如是说3 小时前
可能是最好用的多语言管理工具
android·前端·后端
流星雨在线3 小时前
[汇总]Android Framework相关
android·framework
小红的布丁3 小时前
Reactor 模型详解:单 Reactor、主从 Reactor 与 Netty 思想
android·java·开发语言
cch89183 小时前
Laravel与ThinkPHP5.x核心对比
android
酿情师4 小时前
PHP 反序列化漏洞与 POP 链详解:网络安全小白从零入门
android·web安全·php
数厘4 小时前
2.3MySQL 表结构设计:提升 SQL 查询性能的关键
android·sql·mysql
Kiri霧4 小时前
Kotlin递归
android·开发语言·kotlin