android 12 設備未顯示鍵盤,覆寫顯示鍵盤已打開但未顯示任何內容。它適用于較舊的 android 版本。
鍵盤在其他應用程式中作業正常,并且在具有 Android 12 以外的 android 版本的模擬器上也可以正常作業。 嘗試使用物理設備也 Pixel 與 android 12 面臨相同的問題。
撲醫生代碼 -
flutter doctor -v
[?] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-IN)
? Flutter version 2.2.3 at /Users/uable/Downloads/flutter
? Framework revision f4abaa0735 (4 months ago), 2021-07-01 12:46:11 -0700
? Engine revision 241c87ad80
? Dart version 2.13.4
[?] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
? Android SDK at /Users/uable/Library/Android/sdk
? Platform android-31, build-tools 31.0.0
? ANDROID_HOME = /Users/uable/Library/Android/sdk
? ANDROID_SDK_ROOT = /Users/uable/Library/Android/sdk
? Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
? Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
? All Android licenses accepted.
[!] Xcode - develop for iOS and macOS
? Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
? CocoaPods version 1.10.2
[?] Chrome - develop for the web
? Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[?] Android Studio (version 4.1)
? Android Studio at /Applications/Android Studio.app/Contents
? Flutter plugin can be installed from:
?? https://plugins.jetbrains.com/plugin/9212-flutter
? Dart plugin can be installed from:
?? https://plugins.jetbrains.com/plugin/6351-dart
? Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[?] Connected device (2 available)
? sdk gphone64 x86 64 (mobile) ? emulator-5554 ? android-x64 ? Android 12 (API 31) (emulator)
? Chrome (web) ? chrome ? web-javascript ? Google Chrome 95.0.4638.54
! Doctor found issues in 1 category.
下面是一張帶有鍵盤的簡單文本欄位的影像,也嘗試更改文本欄位的所有屬性。它是一個現有的應用程式,因此嘗試測驗現有的文本欄位,即使在那些顯示相同行為的文本欄位中也是如此。
android gradle 設定
minSdkVersion 24
targetSdkVersion 30

uj5u.com熱心網友回復:
我認為這個錯誤是因為這個模擬器錯誤與系統 UI,你可以擦除模擬器的資料然后再次運行
uj5u.com熱心網友回復:
轉到 android 模擬器 --> 工具 --> AVD 管理器 --> 選擇您正在運行的設備wipedata并再次運行它。
如果它不起作用,請選擇其他設備并嘗試。
我不確定,這可能是simulator.
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/339510.html
