文章目录

  • 一、报错信息
  • 二、解决方案

一、报错信息


接入 Tinker 热修复 , 使用如下 Gradle 插件 ,

        // Tinker 的 tinker-patch-gradle-plugin 插件classpath "com.tencent.tinker:tinker-patch-gradle-plugin:1.9.1"

应用该插件时报错 ;

plugins {id 'com.tencent.tinker.patch'
}

报错信息如下 ;


> Configure project :app
----------------------tinker build warning ------------------------------------
tinker auto operation:
excluding annotation processor and source template from app packaging. Enable dx jumboMode to reduce package size.
enable dx jumboMode to reduce package size.
disable preDexLibraries to prevent ClassDefNotFoundException when your app is booting.tinker will change your build configs:
we will add TINKER_ID=null in your build output manifest file build/intermediates/manifests/full/*if minifyEnabled is true
you will find the gen proguard rule file at build/intermediates/tinker_intermediates/tinker_proguard.pro
and we will help you to put it in the proguardFiles.if multiDexEnabled is true
you will find the gen multiDexKeepProguard file at build/intermediates/tinker_intermediates/tinker_multidexkeep.pro
and we will help you to put it in the MultiDexKeepProguardFile.if applyResourceMapping file is exist
we will build app apk with resource R.txt file
if resources.arsc has changed, you should use applyResource mode to build the new apk!
-----------------------------------------------------------------FAILURE: Build failed with an exception.* What went wrong:
A problem occurred configuring project ':app'.
> No such property: variantConfiguration for class: com.android.build.gradle.internal.variant.ApplicationVariantData* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'.at
Caused by: groovy.lang.MissingPropertyException: No such property: variantConfiguration for class: com.android.build.gradle.internal.variant.ApplicationVariantDataat com.tencent.tinker.build.gradle.TinkerPatchPlugin$_apply_closure1$_closure2.doCall(TinkerPatchPlugin.groovy:133)
* Get more help at https://help.gradle.orgBUILD FAILED in 522ms

二、解决方案


原来的 Gradle 和 Gradle 插件版本太高 :

降低 Gradle 及 Gradle 插件版本 :

目前报如下警告 , 可以暂时忽略该警告 ;

API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app

【错误记录】集成 Tinker 热修复报错 ( No such property: variantConfiguration for class: .ApplicationVariantData )相关推荐

  1. 【错误记录】Tinker 热修复示例运行报错 ( patch receive fail: /storage/emulated/0/patch_signed_7zip.apk, code: -2)

    文章目录 一.报错信息 二.解决方案 参考 [Android 热修复]运行 Tinker 官方示例 博客 ; 一.报错信息 Tinker 热修复中 , 将生成的 patch 包 app-debug-p ...

  2. 【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )

    文章目录 一.报错信息 二.问题分析 三.解决方案 1.解决方案 1 2.解决方案 2 一.报错信息 运行 tinker 官方示例 https://github.com/Tencent/tinker/ ...

  3. 【错误记录】Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. ② | 升级 Gradle 版本 )

    文章目录 一.报错信息 二.解决方案 解决 Could not determine java version from '11.0.8'. 问题 , 有两种方案 , 方案一 : Android Stu ...

  4. 【错误记录】执行 Python 程序报错 ( NameError: name ‘reload‘ is not defined )

    文章目录 一.报错信息 二.解决方案 一.报错信息 在 Windows 的 cmd 命令行运行 python 脚本时 , 报如下错误 : 执行 python ApkTool.py -analyse - ...

  5. 【错误记录】Android Studio 编译报错 ( SDK location not found )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Android Studio 编译报错 : 首次打开别人的项目 , 经常性的报错 ; Could not determine the depende ...

  6. 【错误记录】Android Studio 编译报错 ( Cannot use connection to Gradle distribution . as it has been stopped. )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Cannot use connection to Gradle distribution 'https://services.gradle.org/ ...

  7. 【错误记录】Android 注解处理器报错 ( 非法的类文件开始 , 请删除该文件或确保该文件位于正确的类路径子目录中。 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Android APT , 使用 注解处理器 生成 Java 代码 , 报如下错误 ; 错误: 无法访问MainActivity_ViewBinde ...

  8. 【错误记录】Mac 中 Python 报错 ( ERROR: Could not build wheels for numpy which use PEP 517 | 问题未解决 | 问题记录 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 首先 , 更新 pip ; 执行如下命令 : /usr/local/bin/python3 -m pip install --upgrade pip ...

  9. 【错误记录】Android Studio 编译报错 ( Deprecated Gradle features were used in this build, making it incompat )

    文章目录 一.报错信息 二.解决方案 一.报错信息 使用 Android Studio 编译比较老的 Android 项目时 , 报如下错误 : FAILURE: Build failed with ...

最新文章

  1. LeetCode Scramble String
  2. $.messager.confirm (使用$.messager.defaults修改按钮显示文字)
  3. GitLab公布关于开发者趋势的问卷调查结果
  4. oracle数据库sid已存在,Oracle SID在本机下已经存在,请指定一个不同的SID”的解决方法...
  5. 为什么C语言函数不能返回数组,却可以返回结构体?
  6. Redis Flushall 命令
  7. 计算机视觉论文-2021-07-02
  8. RHEL6/7 x86_64下cachefilesd占用cpu达到100%
  9. php全词查询,php 关键词查询的实现方法
  10. vivado 2017 安装教程
  11. SQL server 创建数据库代码,非常详细
  12. 操作系统实验二:银行家算法
  13. 独角兽微盟的“AB面”
  14. npoi word生成HTML,C# 使用NPOI生成Word文档(按照模板)
  15. word2007目录排版问题
  16. 西安电子科大计算机学院院长,董伟生 | 个人信息 | 西安电子科技大学个人主页...
  17. 信息系统项目管理师----成本类计算
  18. python回归分析例题_python编程线性回归代码示例
  19. 007 Rust死灵书笔记之引用与别名
  20. FUNCTION 数据库名.GETDATE does not exist 详情页下单

热门文章

  1. 优秀交互设计的 UI 原则
  2. 编程是一种对你的身体健康十分有害的工作
  3. 移动端app设计指南
  4. 联想激发青年公益创业彰显“责任”意识
  5. Luogu 3008 [USACO11JAN]道路和飞机Roads and Planes
  6. 必须去收藏14个响应式布局的前端开发框架
  7. 用verilog语言写的任意整数的分频器
  8. BAC--Downtime 凌晨时段设定
  9. 常见Web安全漏洞--------sql注入
  10. BZOJ3574 HNOI2014抄卡组(哈希)