com.android.tools.r8.kotlin.H

引用kotlin的aar后,编译时报错

找到项目中settings.gradle

把这部分加到上面

复制代码
pluginManagement {
    buildscript {
        repositories {
            mavenCentral()
            maven {
                url = uri("https://storage.googleapis.com/r8-releases/raw")
            }
        }
        dependencies {
            classpath("com.android.tools:r8:8.2.24")
        }
    }
}

在文件中proguard-rules.pro 添加

复制代码
-dontwarn java.lang.invoke.StringConcatFactory

可能需要升级compile到34 (target34 min21)

找到build.gradle(app) 改为11

复制代码
	compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
相关推荐
SmartRadio3 分钟前
ESP32-S3 双模式切换实现:兼顾手机_路由器连接与WiFi长距离通信 (采用Arduino代码框架)
开发语言·智能手机·esp32·长距离wifi
njsgcs13 分钟前
solidworks自动标注折弯4 无向图 c#
开发语言·c#·solidworks
c++之路26 分钟前
C++ 多线程
开发语言·c++
CHANG_THE_WORLD31 分钟前
<Fluent Python > Unicode 文本与字节
开发语言·python
AI人工智能+电脑小能手36 分钟前
【大白话说Java面试题】【Java基础篇】第20题:HashMap在计算index的时候,为什么要对数组长度做减1操作
java·开发语言·数据结构·后端·面试·哈希算法·hash-index
凯瑟琳.奥古斯特37 分钟前
Bootstrap快速上手指南
开发语言·前端·css·bootstrap·html
祖国的好青年40 分钟前
VS Code 搭建 React Native 开发环境(Windows 实战指南)
android·windows·react native·react.js
我就是妖怪1 小时前
Kimi K2.6 智能效果实测与能力全景展示
开发语言
中二痞1 小时前
下载Python 版本,环境变量变更以及PyCharm更换python版本
开发语言·python·pycharm
故事和你911 小时前
洛谷-算法2-3-分治与倍增5
开发语言·数据结构·c++·算法·动态规划·图论