日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2025/6/17 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【错误记录】集成 Tinker 热修复报错 ( No such property: variantConfiguration for class: .ApplicationVariantData ) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

  • 一、報錯信息
  • 二、解決方案





一、報錯信息



接入 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 )的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。