更換電腦運(yùn)行項(xiàng)目時(shí),提示:
The ADB at "/Users/fengqican/Library/Android/sdk/platform-tools/adb" is too old; please install version 1.0.39 or later.
修改:(偏好設(shè)置)Appearance & Behavior -> System Settings -> Android SDK
-> SDK Tools -> Android SDK Platform-Tools (更新)
相關(guān)問(wèn)題
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:webview_flutter_android] /Volumes/木木/FlutterProject/flutter_tab_demo/build/webview_flutter_android/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="io.flutter.plugins.webviewflutter" to force usage (may lead to runtime failures)
1.引起這個(gè)問(wèn)題原因很可能是flutter項(xiàng)目要調(diào)用原生的工具皂吮,如相機(jī)戒傻、上傳文件之類(lèi)的
解決問(wèn)題的方法是修改:“自己的flutter項(xiàng)目”/ android / app / build.gradle文件
defaultConfig {
……
minSdkVersion 19
…….
}