소개
게시글
질문&답변
_image == null ? Text('No Image') : Image.file(_image),
아...되네요 이제 SDK를 31로 하니까 됐습니다..하아...쉽지 않네여
- 1
- 4
- 451
질문&답변
_image == null ? Text('No Image') : Image.file(_image),
Launching lib\main.dart on Android SDK built for x86 in debug mode... Warning: The plugin flutter_plugin_android_lifecycle requires Android SDK version 31. Warning: The plugin image_picker_android requires Android SDK version 31. One or more plugins require a higher Android SDK version. Fix this issue by adding the following to L:\flutter\instagram_clone_2\android\app\build.gradle: android { compileSdkVersion 31 ... } FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Multiple task action failures occurred: > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.window:window-java:1.0.0-beta04. AAR metadata file: C:\Users\apoet\.gradle\caches\transforms-2\files-2.1\ad201fac15a88598107ec645f351f5b4\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.window:window:1.0.0-beta04. AAR metadata file: C:\Users\apoet\.gradle\caches\transforms-2\files-2.1\03c633e46d75bfb21f082f0417f55161\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 5s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm) 오류는 안뜨는데 에뮬레이터가 안되네요.
- 1
- 4
- 451
질문&답변
_image == null ? Text('No Image') : Image.file(_image),
해봤는데 안되네요ㅠ The argument type 'File?' can't be assigned to the parameter type 'File'. 이렇게 뜹니다.
- 1
- 4
- 451
질문&답변
ImagePicker.pickImage vs ImagePicker.getImage
안됩니다. 너무 열받네요.
- 1
- 3
- 752