当前位置: 首页 > news >正文

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.

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
为以下版本

    implementation 'androidx.appcompat:appcompat:1.4.1'implementation 'com.google.android.material:material:1.6.0'
http://www.lryc.cn/news/187339.html

相关文章:

  • 浏览器插件开发爬虫记录
  • 万万没想到,我用文心一言开发了一个儿童小玩具
  • SQL sever中的视图
  • 如何理解数据序列化
  • 07_项目开发_用户信息列表
  • flutter ios打包
  • 【无公网IP内网穿透】基于NATAPP搭建Web站点
  • 智能AI创作系统ChatGPT详细搭建教程/AI绘画系统/支持GPT联网提问/支持Prompt应用/支持国内AI模型
  • 【技能树笔记】网络篇——练习题解析(五)
  • Java集合(二)--- 集合元素的遍历操作Iterator以及foreach
  • 数据结构:排序- 插入排序(插入排序and希尔排序) , 选择排序(选择排序and堆排序) , 交换排序(冒泡排序and快速排序) , 归并排序
  • IOT 围炉札记
  • 小谈设计模式(24)—命令模式
  • 9.HTML
  • 分层强化学习 综述论文阅读 Hierarchical Reinforcement Learning: A Comprehensive Survey
  • TensorFlow入门(十五、数据读取机制(2))
  • Linux系统中实现便捷运维管理和远程访问的1Panel部署方法
  • Rancher清理节点
  • C++-Mongoose(1)-http-server
  • Linux中openvswitch配置网桥详解
  • Python自动化测试框架pytest的详解安装与运行
  • 23种设计模式详解
  • 微信小程序案例:2-2本地生活
  • 机器学习论文中常用的数学符号以及Latex
  • 【iOS】Fastlane一键打包上传到TestFlight、蒲公英
  • 绝地求生大吃鸡攻略,让你成为顶级战士!
  • [架构之路-235]:目标系统 - 纵向分层 - 数据库 - 数据库系统基础与概述(快速入门、了解核心概念):概念模型、逻辑模型、物理模型
  • 小程序, 多选项
  • 华为云云耀云服务器L实例评测|使用redis事务和lua脚本
  • vue2项目中使用element ui组件库的table,制作表格,改表格的背景颜色为透明的