[Flutter] AWS Amplify/Firebase 오류 요약

Fluter 기고문 보도

  • [Flutter] 겪은 오류 & 해결 방법 총결
  • [Flutter] 겪는 오류 & 해결 방법 요약 ②
  • [Flutter] 겪는 오류 & 해결 방법 요약 ③
  • 참고 문헌

  • cannot run amplify codegen #288
  • cocoappods에는'they required a high er minimum deployment target.'라고 적혀 있다.오류 발생 시 대처 방법
  • 안드로이드 화면 회전 고정 표시
  • add 'tools:replace=“android:label”' to <application> element at AndroidManifest.xml:16:5-39:19 to override
  • Getting started
  • manual_migration_settings.gradle.md
  • 1. settings_aar.gradle 오류가 없습니다


    ◆잘못된 내용
    ◆해결책
    1. Copy `settings.gradle` as `settings_aar.gradle`
    2. Remove the following code from `settings_aar.gradle`:
    
        def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
        def properties = new Properties()
    
        assert localPropertiesFile.exists()
        localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
    
        def flutterSdkPath = properties.getProperty("flutter.sdk")
        assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
        apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
    

    2. amplify add codegen 실행 오류


    ◆잘못된 내용
    ◆해결책
    include ':app'
    def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
    
    def plugins = new Properties()
    def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
    if (pluginsFile.exists()) {
        pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
    }
    
    plugins.each { name, path ->
        def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
        include ":$name"
        project(":$name").projectDir = pluginDirectory
    }
    

    3. Podfile platform 오류


    ◆잘못된 내용
    ◆해결책
    Error: amplify-codegen-appsync-model-plugin not support language target flutter. Supported codegen targets arr java, android, swift, ios, javascript, typescript
    

    4. android: label 오류


    ◆잘못된 내용
    ◆해결책
    $ npm install -g @aws-amplify/cli
     $ amplify -v
     $ amplify upgrade
     4.41.0
    

    5. 안드로이드 화면 고정


    ◆가로화면 고정
    3
    they required a higher minimum deployment target.
    
    ◆세로화면 고정
    platform :ios, '8.0'   // before
    platform :ios, '9.0'   // after
    

    좋은 웹페이지 즐겨찾기