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'
相关推荐
冬奇Lab3 小时前
相机拍照流程:从快门按下到JPEG存储的完整旅程
android·音视频开发·源码阅读
深念Y3 小时前
多模态技术详解:TTS、ASR、OCR
ide·ai·语音识别·agi·多模态·文字识别·实时语言
alexhilton3 小时前
在Compose中用Shader实现透明的粘稠元球效果
android·kotlin·android jetpack
easyboot4 小时前
Visual Studio 2026安装Avalonia
ide·windows·visual studio
jwn9994 小时前
Laravel5.x核心特性全解析
android·php·laravel
studyForMokey6 小时前
【Android面试】RecylerView专题
android·spring·面试
android_cai_niao7 小时前
Android中有什么技术过时了可以直接用新技术的
android·过时技术
卓小帅的博客8 小时前
解决vscode中无法使用特定语言注释的问题
ide·vscode·编辑器·快捷键·无法注释
lingggggaaaa8 小时前
PHP原生开发篇&文件安全&上传监控&功能定位&关键搜索&1day挖掘
android·学习·安全·web安全·php
我是场8 小时前
我的NPI项目 - OTA upgrade是什么?
android·人工智能