国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““

這篇具有很好參考價值的文章主要介紹了【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

項目場景:

最近在做深度學(xué)習(xí)模型的手機(jī)部署,因為初次使用Andriod模型,所以遇到了不少bug。

問題描述

具體報錯如下:
【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle
看起來有很多錯誤,其實都是第一個感嘆號引起的。
點(diǎn)開感嘆號,能看到:
【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle
其實這里已經(jīng)告訴了我們報錯原因和解決方法:
Your project has set android.useAndroidX=true, but configuration :app:debugRuntimeClasspath still contains legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set android.enableJetifier=true in the gradle.properties file to migrate your project to AndroidX (see https://developer.android.com/jetpack/androidx/migrate for more info).

原因分析:

這個警告意味著您的項目中存在舊版的Support庫,但您的項目已經(jīng)設(shè)置為使用AndroidX。這可能會導(dǎo)致運(yùn)行時問題,并且在未來的Gradle插件版本中,這種行為將不再被允許。
要解決這個問題,您可以嘗試以下兩種方法之一:

1.遷移到使用AndroidX庫。這意味著您需要將所有舊版Support庫替換為對應(yīng)的AndroidX庫??梢允褂肁ndroid Studio的Refactor功能來自動完成此操作。您可以在gradle.properties文件中設(shè)置android.useAndroidX=true來啟用此功能。

2.啟用Jetifier。Jetifier是一個工具,可以將舊版Support庫轉(zhuǎn)換為AndroidX庫,以便您可以繼續(xù)使用舊版庫而不會出現(xiàn)運(yùn)行時問題。您可以在gradle.properties文件中設(shè)置android.enableJetifier=true來啟用此功能。

請注意,如果您選擇啟用Jetifier,請確保您的項目中沒有使用任何自定義的Support庫或第三方庫,否則可能會出現(xiàn)不兼容性問題。

解決方案:

我們打開gradle.properties,如下圖所示:
【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle
在最后添加一句:android.enableJetifier=true【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle
再次同步,同步后再運(yùn)行,發(fā)現(xiàn)不報錯了:

【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle

【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““,模型部署,android,android studio,gradle文章來源地址http://www.zghlxwxcb.cn/news/detail-756342.html

到了這里,關(guān)于【模型部署】Andriod stdio報錯:app:checkDebugAarMetadata Your project has set “andriod.useAndriodX=true““的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 奇怪的AndroidStudio報錯--checkDebugAarMetadata--修改SDK版本為33成功修復(fù)

    奇怪的AndroidStudio報錯--checkDebugAarMetadata--修改SDK版本為33成功修復(fù)

    使用Android Studio創(chuàng)建程序時報錯 checkDebugAarMetadata: 點(diǎn)擊文件項目結(jié)構(gòu)modules修改CompileSdk版本為33即可正常運(yùn)行 看著錯誤提示好像是我的sdk編譯版本有問題,但前幾天用32還好好的,莫名其妙今天創(chuàng)建空項目程序都要用33實在不能理解,好在也就花了半小時,android studio的bug太玄學(xué)了

    2024年02月16日
    瀏覽(15)
  • Andriod開發(fā)APP--Bugger

    1.Android警告信息:Touch target size too small: 改一下尺寸 2.Android警告信息:Insufficient text color contrast ratio: 3.Android Studio ImageButton顯示\\\"No speakable text present\\\": 這個問題不大,可以添加以下代碼解決 ? 4.android studio 編譯錯誤 Error: Duplicate resources : 原因在于drawable 目錄下圖片和xml文

    2024年02月06日
    瀏覽(20)
  • Andriod APP逆向——常用工具

    Andriod APP逆向——常用工具

    ADB,即 Android Debug Bridge,它是 Android 開發(fā)/測試人員不可替代的強(qiáng)大工具,也是 Android 設(shè)備玩家的好玩具。安卓調(diào)試橋 (Android Debug Bridge, adb),是一種可以用來操作手機(jī)設(shè)備或模擬器的命令行工具。它存在于 sdk/platform-tools 目錄下。雖然現(xiàn)在 Android Studio 已經(jīng)將大部分 ADB 命令以圖

    2024年02月08日
    瀏覽(30)
  • 配置SpringBoot后,報錯:Error starting ApplicationContext. To display the conditions report re-run your app

    配置SpringBoot后,報錯:Error starting ApplicationContext. To display the conditions report re-run your app

    一、報錯信息: 在配置完springBoot后運(yùn)行程序突然出現(xiàn)這樣的報錯,參考其他大佬的解決方案之后,發(fā)現(xiàn)有很多都是依賴錯誤,翻譯了下報錯信息: 然后找到報錯上我配置它的Bean的配置類里面,發(fā)現(xiàn)錯誤是配置類沒有添加注解@Configuration,加上注解之后錯誤解決。

    2024年04月15日
    瀏覽(17)
  • flutter App如何跳轉(zhuǎn)小程序如何調(diào)用微信sdk(ios/andriod)

    flutter App如何跳轉(zhuǎn)小程序如何調(diào)用微信sdk(ios/andriod)

    ? ? ? ? 實不相瞞,這一塊著實耗費(fèi)了我很大的時間,因為沒有太多ios和andriod原生開發(fā)的知識儲備,在很多方面就會踩不少坑,這里總結(jié)幾種app跳轉(zhuǎn)微信小程序的方式 第一種方案:使用明文URL Scheme 這是最簡單!不需要太多配置的方式!但是這里有一個坑就是對于ios是無痛拉

    2024年03月14日
    瀏覽(105)
  • linux 寫c, 編譯報錯 stdio.h: No such file or directory,compilation terminated.

    linux 寫c, 編譯報錯 stdio.h: No such file or directory,compilation terminated.

    環(huán)境: windows11-subsystem(Ubuntu20) 問題: linux 寫c, 編譯報錯如圖(fatal error: stdio.h: No such file or directory │compilation terminated. #include stdio.h) 復(fù)現(xiàn): 問題原因: 默認(rèn)操作系統(tǒng)安裝的gcc版本不對,和軟硬件不兼容 解決方案 卸載默認(rèn)gcc: build-essential: 它包含了 GNU 編輯器集合,GNU 調(diào)試器,和

    2024年02月13日
    瀏覽(19)
  • Windows 11 安裝最新版本Android Studio報錯:Andriod SDK unavailable和sdk emulator directory is missing

    Windows 11 安裝最新版本Android Studio報錯:Andriod SDK unavailable和sdk emulator directory is missing

    Windows 11 平臺下安裝了最新版本的Android Studio,遇到下面問題“ 1.安裝過程中首先會遇到Andriod SDK unavailable 2.選擇next繼續(xù)安裝之后會報sdk emulator directory is missing 根據(jù)提示可以判斷出是Andriod SDK 無法安裝導(dǎo)致問題,剛開始以為是殘留文件導(dǎo)致的,于是進(jìn)行多次卸載重裝,無果。

    2024年02月07日
    瀏覽(24)
  • 基于OpenCV+LPR模型端對端智能車牌識別——深度學(xué)習(xí)和目標(biāo)檢測算法應(yīng)用(含Python+Andriod全部工程源碼)+CCPD數(shù)據(jù)集

    基于OpenCV+LPR模型端對端智能車牌識別——深度學(xué)習(xí)和目標(biāo)檢測算法應(yīng)用(含Python+Andriod全部工程源碼)+CCPD數(shù)據(jù)集

    本項目基于CCPD數(shù)據(jù)集和LPR(License Plate Recognition,車牌識別)模型,結(jié)合深度學(xué)習(xí)和目標(biāo)檢測等先進(jìn)技術(shù),構(gòu)建了一個全面的車牌識別系統(tǒng),實現(xiàn)了從車牌檢測到字符識別的端到端解決方案。 首先,我們利用CCPD數(shù)據(jù)集,其中包含大量的中文車牌圖像,用于模型的訓(xùn)練和驗證。

    2024年02月09日
    瀏覽(23)
  • Gitlab登錄報錯 Your account is pending approval from your GitLab administrator and hence blocked.

    Gitlab登錄報錯 Your account is pending approval from your GitLab administrator and hence blocked.

    Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLabadministrator if you think this is an error. 用root賬號登錄Git lab 點(diǎn)擊左上角的三條杠圖標(biāo),再點(diǎn)擊Admin 點(diǎn)擊Users 再找到對應(yīng)的user,點(diǎn)擊Approve就可以了 參考鏈接: https://blog.csdn.net/weixin_56270746/article/det

    2024年02月13日
    瀏覽(29)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包