# Flutter - 疑難炸症 ## 版面問題 ### 前鏡頭瀏海問題 #### Samsung A70 黑色區塊為手機鏡頭  | 修改前 | 修改後 | | -------- | -------- | |  |  | ```xml <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> ```  [參考資料](https://developer.android.com/guide/topics/display-cutout) ## VSCode ### 下載新版本JDK  ## Debug相關 除錯所噴的錯無論是否有影響程式執行都放在這 ### Flutter Build Error: Process 'command 'E:\Flutter Apps\flutter\bin\flutter.bat'' finished with non-zero exit value 1  ``` flutter clean ``` ### Note: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details. ## VScode相關 ### Waiting for another flutter command to release the startup lock...  執行以下: ``` taskkill /F /IM dart.exe ```  參考資料: [stackoverflow](https://stackoverflow.com/questions/51679269/waiting-for-another-flutter-command-to-release-the-startup-lock) ### [FlutterDaemon] [Error] Checking Dart SDK version... �o�ӮɭԤ����� <<�C  此問題為誤推flutter的commit導致  還好提示訊息說會有衝突  捨棄衝突 ``` git merge --abort ``` 就可以正常使用Dart進行編譯了 ## adb相關 ### adb.exe: more than one device/emulator 1. 檢查是不是有多個模擬器 ``` adb devices ```  2. 假設有一個以上的模擬器就需要對adb指令給予對應的機器序列號 -s ``` adb -s emulator-5554 shell ``` ### Activity not started, unable to resolve Intent 此錯誤可以忽略它只是告訴你APP正在運作 ## 輸出Release APK相關 ### Build failed with an exception. Execution failed for task ':app:validateSigningRelease'. 執行 ``` flutter build apk ```  此錯誤發生原因為`/android/key.properties`的文件,storeFile的路徑斜線打反了導致改為使用`/`即可: ``` storePassword=剛剛輸入的密碼 keyPassword=剛剛輸入的密碼 keyAlias=key storeFile=輸入本地金鑰儲存位置,例如: C:/dev/flutter/key/key_test.jks >> 這邊 ``` ### A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable ``` Execution failed for task ':app:packageRelease'. > Multiple task action failures occurred: > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/yen.chen/upload-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/yen.chen/upload-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "/Users/yen.chen/upload-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available ``` ### Kotlin Gradle plugin  https://kotlinlang.org/docs/gradle-configure-project.html#targeting-the-jvm ## 模擬器相關 ### INSTALL_FAILED_INSUFFICIENT_STORAGE  解法: 此為手機模擬器內存空間不足導致,調整模擬器內存大小  ## Mac ### Error running pod install  ###### tags: `flutter`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up