本文介紹了僅從 android 0 --min-api 26 開始支持調用自定義的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
在我使用構建版本 gradle 26 之前,但是像這張圖片一樣將 buildtoolsversion 更改為 27 后
before i'm use build version gradle 26 but after change buildtoolsversion to 27 like as this image
我最近使用的是 android studio 4.2.2 我更新了所有依賴項和
I am using android studio 4.2.2 recently i update all my dependency and
sourceCompatibility JavaVersion.VERSION_1_10
targetCompatibility JavaVersion.VERSION_1_10
到
compileOptions {
sourceCompatibility kotlin_version
targetCompatibility kotlin_version
}
更新后出現此錯誤,請幫忙
after update i am getting this error please help
錯誤:錯誤構建gradle屏幕截圖
error : error build gradle screenshot
推薦答案
經過數小時的努力,我通過在 app/build.gradle 中包含以下內容解決了這個問題:
After hours of struggling, I solved it by including the following within app/build.gradle:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
https://github.com/mapbox/mapbox-gl-native/問題/11378
這篇關于僅從 android 0 --min-api 26 開始支持調用自定義的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!