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

Android2024.2.1升级错误

1.gradle安装包镜像


distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
//distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-8.5-bin.zip //镜像
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


2.Namespace not specified. Specify a namespace in the module’s build file.


app/build.gradle

apply plugin: 'com.android.application'

android {
    namespace "com.hty.browser" //新增
    compileSdkVersion 26

    defaultConfig {
        applicationId "com.hty.browser"
        minSdkVersion 19
        targetSdkVersion 26
    }

}

3.Android Studio:case 错误: 需要常量表达式


https://blog.csdn.net/wchinaw/article/details/7325641
http://tools.android.com/tips/non-constant-fields
case 变量,不再支持,使用 if 代替。
快捷键:选中switch后,按alt+enter,选择replace为if..else


http://www.mrgr.cn/news/43342.html

相关文章:

  • 表达式求值(可以计算两位数以上)
  • 【云原生】云原生架构的反模式
  • dll动态库加载失败导致程序启动报错以及dll库加载失败的常见原因分析与总结
  • 今日指数项目个股描述功能实现
  • 弧形导轨驱动器高效使用技巧!
  • 双十一狂欢派对 五款市面上获得好评的好物
  • 【深度学习】— softmax回归、网络架构、softmax 运算、小批量样本的向量化、交叉熵
  • 实现 Spring IOC 的关键问题和技术详解
  • 基于SpringBoot+Vue的高校运动会管理系统
  • X3U·可编程控制器的定位控制
  • 文心智能体——制作你的专属AI
  • 如何让猫咪长肉?瘦猫增重猫罐测评:fellicita、希喂、wellness好不好?
  • Python环境安装教程
  • Linux线程(七)线程安全详解
  • hdfs伪分布式集群搭建
  • 打卡第一天 B2005 字符三角形
  • k8s 之动态创建pv失败(踩坑)
  • 【复习】HTML常用标签<table>
  • 使用DS18B20温度传感器读取温度,附STM32代码示例
  • VBA信息获取与处理第三个专题第三节:工作薄在空闲后自动关闭