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'
相关推荐
scan7246 小时前
长期记忆存储在数据库里
android
xingpanvip6 小时前
星盘接口开发文档:星相日历接口指南
android·开发语言·前端·css·php·lua
AI进化营-智能译站8 小时前
Jazzy ROS2入门指南系列05-配置VsCode实现ROS2项目开发
ide·vscode·ai·编辑器
儿歌八万首8 小时前
Jetpack Compose 实战:实现一个动态平滑折线图
android·折线图·compose
李艺为13 小时前
Fake Device Test作假屏幕分辨率分析
android·java
zh_xuan13 小时前
github远程library仓库升级
android·github
峥嵘life13 小时前
Android蓝牙停用绝对音量原理
android
EvenBoy13 小时前
IDEA中使用CodeX
java·ide·intellij-idea
时光之源13 小时前
Visual Studio | Marketplace创建发布者(Create Publisher)时无法创建的问题解决方案
ide·vscode·visual studio·plugin·cursor
czlczl2002092514 小时前
IN和BETWEEN在索引效能的区别
android·adb