Android Studio版本升级后的问题 gradle降级、jdk升级

Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

复制代码
修改下面两处地方分别为7.0.3、7.3.3


Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

java 复制代码
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
     You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

Can't determine type for tag '<macro name="m3_comp_switch_disabled_selected_handle_color">

AGPBI: {"kind":"error","text":"Can't determine type for tag '<macro name="m3_comp_switch_disabled_selected_handle_color">?attr/colorSurface'","sources":[{"file":"/Users/fausto/.gradle/caches/transforms-3/4948d05d0ff6027d2e3c9f4a6010103b/transformed/material-1.7.0-alpha02/res/values/values.xml"}],"tool":"Resource and asset merger"}

降级 androidx.appcompat:appcompat

降级 com.google.android.material:material

为以下版本

java 复制代码
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.6.0'
相关推荐
墨月白37 分钟前
[QT]QProcess的相关使用
android·开发语言·qt
enbug1 小时前
编译安卓内核:以坚果R1、魔趣MK100(Android 10)系统为例
android·linux
星辰引路-Lefan1 小时前
Antigravity 登录问题及解决方案:Antigravity Tools 账号管理工具详解
ide·ai编程·gemini·antigravity
、BeYourself1 小时前
应用专属文件与应用偏好设置(SharedPreferences)
android
2501_948120151 小时前
基于模糊数学的风险评估模型
android
MengFly_2 小时前
Compose 脚手架 Scaffold 完全指南
android·java·数据库
*小海豚*2 小时前
springcloud项目运行启动类无法启动,IDEA也没有任何提示
java·ide
·云扬·3 小时前
MySQL Binlog三种记录格式详解
android·数据库·mysql
月明泉清3 小时前
Android中对于点击事件的深度梳理(二)
android
遇见火星3 小时前
Linux 服务可用性监控实战:端口、进程、接口怎么监控?
android·linux·运维