Skip to content

upgrade to 1.2.1 but build fail #28701

Closed
Closed

Description

@lsp9876

i use flutter in an exist app. Today i upgrade flutter to 1.2.1 but build fail.

` AGPBI: {"kind":"error","text":"Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in io.flutter.view.AccessibilityBridge.shouldSetCollectionInfo:(Lio/flutter/view/AccessibilityBridge$SemanticsObject;)Z: invalid opcode ba - invokedynamic requires --min-sdk-version \u003e\u003d 26 (currently 16)","sources":[{}]}
AGPBI: {"kind":"error","text":"1 error; aborting","sources":[{}]}
305 actionable tasks: 141 executed, 164 up-to-date
*********************************************************
WARNING: This version of path_provider will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************

FAILURE: Build failed with an exception. `

Activity

  1. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G5019, locale zh-Hans-CN)
    • Flutter version 1.2.1 at /Users/lishupeng1/flutter/flutter
    • Framework revision 8661d8a (2 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/lishupeng1/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

    [✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

    [✓] Connected device (1 available)
    • JMM AL10 • JGB9K18107918723 • android-arm64 • Android 7.0 (API 24)

  2. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    android {
    compileOptions {
    sourceCompatibility 1.8
    targetCompatibility 1.8
    }
    }
    These code have no effect

  3. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    When you say existing app, you mean an existing Android app or your existing Flutter app?

  4. added
    platform-androidAndroid applications specifically
    t: gradle"flutter build" and "flutter run" on Android
    on Mar 1, 2019
  5. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    (flutter.gradle should be adding your source/targetCompatibility attributes anyway)

  6. modified the milestones: April 2019, on Mar 1, 2019
  7. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    @dnfield Thank you for your attention. I mean an existing Android app, and i add these code in my source。After i add these code, exception is "java.lang.IllegalArgumentException: already added: ******". I am sure only one class in my project.

  8. added
    a: existing-appsIntegration with existing apps via the add-to-app flow
    on Mar 1, 2019
  9. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    Can you include your build.gradle files here?

  10. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor
  11. matthew-carroll commented on Mar 1, 2019

    @matthew-carroll
    Contributor

    @dnfield @mehmetf @jason-simmons do we know our current story is around AndroidX? Somehow I'm out of the loop on this. There appears to be an entire Flutter related guide linked from the error log in this ticket.

  12. matthew-carroll commented on Mar 1, 2019

    @matthew-carroll
    Contributor

    Also @dnfield @jason-simmons do either of you know if our engine build system currently incorporates the AndroidX libraries?

  13. 7 remaining items

  14. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author
    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    
    buildscript {
        repositories {
            maven { url "https://maven.google.com" }
            maven { url "http://***.com/libs-releases-local/" }
            maven { url "http://***.com/libs-snapshots-local/" }
            jcenter()
            mavenCentral()
            google()
    
    //        maven { url "http://***.com/libs-releases-local/" }
    //        maven { url "http:/***.com/libs-snapshots-local/" }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
            classpath 'com.antfortune.freeline:gradle:0.8.7'
            classpath 'com.meituan.android.walle:plugin:1.1.5'
            classpath '**:android-native-dependencies:0.1.7'
            classpath '**:pomplugin:0.0.5'
            // tinkersupport插件, 其中lastest.release指拉取最新版本,也可以指定明确版本号,例如1.0.4
            //目前单独集成tinker 不使用bugly内置的
            classpath 'com.tencent.bugly:tinker-support:1.1.5'
            // TinkerPatch 插件、
    //        classpath "com.tinkerpatch.sdk:tinkerpatch-gradle-plugin:1.2.6"
            // NOTE: Do not place your application dependencies here; they be、long
            // in the individual module build.gradle files
    
            classpath "com.alibaba:arouter-register:1.0.2"
    
        }
    }
    
    allprojects {
        repositories {
            maven { url "https://maven.google.com" }
            jcenter()
            maven { url "http://***.com/libs-releases-local/" }
            maven { url "http://***.com/libs-snapshots-local/" }
            mavenCentral()
            google()
    //        maven { url "http://***.com/libs-releases-local/" }
    //        maven { url "http://***.com/libs-snapshots-local/" }
    //        maven { url "https://jitpack.io" }
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    ext {
        // Sdk and tools
        minSdkVersion = 16
        targetSdkVersion = 25
        compileSdkVersion = 26
        buildToolsVersion = '28.0.2'
    
        // App dependencies
        supportLibraryVersion = '27.1.1'
        guavaVersion = '18.0'
        junitVersion = '4.12'
        mockitoVersion = '1.10.19'
        powerMockito = '1.6.2'
        hamcrestVersion = '1.3'
        runnerVersion = '0.4.1'
        rulesVersion = '0.4.1'
        espressoVersion = '2.2.2'
        retrofitVersion = '2.0.0-beta2'
        okhttploggingVersion = '2.6.0'
        rxjavaVersion = '1.1.0'
        rxbindingVersion = '0.2.0'
        glideVersion = '3.6.1'
        glideokhttpVersion = '1.3.1'
        photoviewVersion = '1.2.4'
        support_library_version ='24.2.0'
    }
    
    
    apply plugin: 'com.android.application'
    apply plugin: 'com.antfortune.freeline'
    apply plugin: 'walle'
    // 依赖插件脚本
    //apply from: 'tinkerpatch.gradle'
    apply from: 'tinker-support.gradle'
    //apply plugin: 'findbugs'
    apply plugin: 'com.alibaba.arouter'
    
    
    android {
    
    //    compileOptions {
    //        sourceCompatibility 1.8
    //        targetCompatibility 1.8
    //    }
    
        repositories {
            flatDir {
                dirs 'libs'
            }
            maven { url 'https://jitpack.io' }
        }
    
    
        compileSdkVersion rootProject.ext.compileSdkVersion
        buildToolsVersion rootProject.ext.buildToolsVersion
        defaultConfig {
        
            minSdkVersion rootProject.ext.minSdkVersion
            targetSdkVersion rootProject.ext.targetSdkVersion
            versionCode 43
            versionName "2.9.2"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            aaptOptions.cruncherEnabled = false
            aaptOptions.useNewCruncher = false
            renderscriptTargetApi rootProject.ext.targetSdkVersion
            renderscriptSupportModeEnabled true
            multiDexEnabled true
            ndk { abiFilters "armeabi" }
    
    //        buildConfigField("int", "guideVersion", "1")
            flavorDimensions "versionCode"
            javaCompileOptions {
                annotationProcessorOptions {
                    includeCompileClasspath = true
                    arguments = [AROUTER_MODULE_NAME: project.getName()]
                }
            }
        }
        buildTypes {
            release {
                //测试期间暂时关闭
                minifyEnabled true
                multiDexEnabled true
                debuggable false
                signingConfig signingConfigs.release
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    
                applicationVariants.all {
                    variant ->
                        variant.outputs.all {
                            output ->
    //                            def outputFile = output.outputFile
    //                            if (outputFile != null && outputFile.name.endsWith('.apk')) {
    //                                def packageName = "${defaultConfig.applicationId}"
    //                                def appName = packageName.substring(packageName.lastIndexOf(".") + 1)
    //                                def versionName = "${defaultConfig.versionName}"
    //                                def flavorFlag = "${variant.productFlavors.get(0).name}"
    //                                def newName = flavorFlag + "_release_v" + versionName + ".apk"
    //                                output.outputFile = new File(outputFile.parent, newName)
    //                            }
                                //获取签名的名字 variant.signingConfig.name
                                //要被替换的源字符串
                                def sourceFile = output.outputFile.name;
                                //替换的字符串
                                def packageName = "${defaultConfig.applicationId}"
                                def appName = packageName.substring(packageName.lastIndexOf(".") + 1)
                                def versionName = "${defaultConfig.versionName}"
                                def flavorFlag = "${variant.productFlavors.get(0).name}"
                                def newName = flavorFlag + "_release_v" + versionName + ".apk"
                                def replaceFile = newName;
                                outputFileName = output.outputFile.name.replace(sourceFile, replaceFile);
                        }
                }
            }
    
            debug {
                minifyEnabled false
                multiDexEnabled true
                signingConfigs.debug
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    
            }
        }
        sourceSets {
            main {
                jniLibs.srcDirs 'libs'
            }
        }
        //test
        lintOptions {
            checkReleaseBuilds true
            abortOnError true
            disable "ResourceType"
        }
    
    ....
    
    
    
    freeline {
        hack true
        productFlavor '**'
    }
    
    def AAVersion = '4.3.1'
    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        /*androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })*/
        compile(name: 'aapaymentcode-release', ext: 'aar')
        compile(name: 'aapaygeneralflow-release', ext: 'aar')
        compile(name: 'aajr-aacn-face-Athena', ext: 'aar')
        compile(name: 'android_sdk-release', ext: 'aar')
        compile(name: 'aapay-release', ext: 'aar')
        compile files('libs/greendao-2.0.0.jar')
        compile(name: 'aajr-risk-assist-info-archer-2', ext: 'aar')
        compile(name: 'jrtd-aacn-fido-fingerpay', ext: 'aar') {
            exclude module: 'okhttputils'
        }
        compile(name: 'LibRisk-release', ext: 'aar')
    
        debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
        releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
    
        compile(name: 'push_mix_sdk_1.5.0', ext: 'aar')
    
        //    compile files('libs/wjlogin_android_sdk_v3.0.0.jar')
        compile(project(':android_net_image_library')) {
            exclude group: 'com.squareup.okhttp3', module: 'okhttp'
        }
        compile(project(':bdcodehelper')) {
            exclude group: 'com.android.support'
        }
        compile project(':bottombar')
        compile(project(':zbarlibary')) {
            exclude group: 'com.squareup.okio', module: 'okio'
            exclude group: 'com.google.code.findbugs', module: 'jsr305'
            exclude group: 'javax.annotation', module: 'javax.annotation-api'
    //        exclude group: 'com.aa.wireless.libs', module: 'okhttp'
            exclude group: 'com.android.support'
        }
        compile(project(':select_photo_library')) {
            exclude group: 'com.squareup.okhttp3', module: 'okhttp'
        }
        compile project(':rollviewpager')
        compile project(':barlibrary')
        compile project(':coverflow')
        compile files('libs/open_sdk_r5788.jar')
        compile(name: 'core-4.3.1-openDefaultRelease', ext: 'aar')
        compile files('libs/tencent_map_sdk_4.1.2.0.6e885d5.jar')
        compile files('libs/TencentMapSearch_v1.1.7.490d100.jar')
    
        compile files('libs/aaCrashReport-release-1.0.231.jar')
    
        //    compile(name: 'aaPaySDK_Android_aaMall', ext: 'aar')
        compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
        compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
        compile files('libs/tbs_sdk_thirdapp_v3.6.0.1325_43613_sharewithdownload_withoutGame_obfs_20180807_151115.jar')
    
        //    compile files('libs/wypmaframe-1.1.1.jar')
    
        //    compile files('libs/aapaycommonbury.jar')
    
        //    compile files('libs/aapaynetwork.jar')
    
        //    compile files('libs/risksdk.jar')
        compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
    
        //    compile 'com.aa.wireless.libs:tbs_sdk_thirdapp_v3.2.0.1005_43201_sharewithdownload_obfs_20170326_205537:3.2.0'
        compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        compile 'com.google.code.gson:gson:2.6.2'
    
        compile 'com.github.iwgang:countdownview:2.1.6'
        compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
    
        //    testCompile 'junit:junit:4.12'
    
        //walle打包
        compile 'com.meituan.android.walle:library:1.1.5'
    
        //    compile('junit:junit:4.12') {
    
        //        exclude module: 'junit:junit:3'
    
        //    }
    
        //    androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.6.0'
    
        //    androidTestCompile 'junit:junit:4.12'
    
        //注释掉原有bugly的仓库
    
        //compile 'com.tencent.bugly:crashreport:latest.release'//其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.3.4
        compile 'com.tencent.bugly:crashreport_upgrade:1.3.6'
        compile 'com.tencent.bugly:nativecrashreport:3.6.0'
    
        //    compile("com.tinkerpatch.sdk:tinkerpatch-android-sdk:1.2.6")
        compile 'com.tencent.tinker:tinker-android-lib:1.9.9'
        androidTestCompile files('src/androidTest/libs/robotium-solo-5.6.3.jar')
        androidTestCompile files('src/androidTest/libs/android-junit-report-1.5.8.jar')
        compile 'com.getkeepsafe.relinker:relinker:1.2.2'
        compile(name: 'aaijkplayer', ext: 'aar')
        compile files('libs/aaVideoMsg.jar')
    
        //flexbox
    //    compile project(':flex_layout')
        compile(name: 'flex_layout_4', ext: 'aar')
        compile 'com.facebook.yoga:yoga:1.7.0'
        compile 'com.furture.react:DuktapeJava:1.2.0'
    
        //    compile(name: 'aahai-release', ext: 'aar')
    //    compile 'com.facebook.yoga:yoga:1.7.0'
    //    compile 'com.furture.react:DuktapeJava:1.2.0'
    
        compile project(':pickerview')
    
        //    compile 'org.greenrobot:eventbus:3.0.0'
        implementation project(':switch_lib')
        implementation files('libs/java-unrar-decryption-supported-20120613.jar')
        implementation files('libs/zip4j_1.3.2.jar')
        compile 'com.aa.wireless.aasdk:android-sdk-devicefinger:0.1.4'
        //    compile 'com.alibaba:fastjson:1.1.68.android'
    
        //app监控
        compile 'com.aa.wireless.libs:aa_shooter:1.0.5'
    
        annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
        implementation "org.androidannotations:androidannotations-api:$AAVersion"
    
        compile 'com.alibaba:arouter-api:1.4.1'
        annotationProcessor 'com.alibaba:arouter-compiler:1.2.2'
    
        //flutter module
        implementation project(':flutter')
    
    }
    /*
    task findbugs(type: FindBugs) {
        ignoreFailures = false
        effort = "default"
        reportLevel = "medium"
        excludeFilter = new File("${project.rootDir}/findbugs/findbugs-filter.xml")
        classes = files("${project.rootDir}/app/build/intermediates/classes")
        source = fileTree('src/main/java/')
        classpath = files()
        reports {
            xml.enabled = true
            html.enabled = true
            xml {
                destination "$project.buildDir/findbugs/findbugs-output.xml"
            }
            html {
                destination "$project.buildDir/findbugs/findbugs-output.html"
            }
        }
    }*/
    
    
  15. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    @matthew-carroll Pardon me for my carelessness. release build fail ...

  16. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    classpath 'com.android.tools.build:gradle:3.0.1'

    Can you try updating your Android Gradle plugin to at least 3.2.0 (possibly 3.3.0)?

    I'd also try uncommenting the lines if that alone doesn't work:

    // compileOptions {
    // sourceCompatibility 1.8
    // targetCompatibility 1.8
    // }

    And, probably not relevant to this error, but in your repositories entry maven { https://maven.google.com } and google() are equivalent....

  17. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    @dnfield Thanks. Let me try~

  18. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    @dnfield You are right. 😀 build successful~

        compileOptions {
            sourceCompatibility 1.8
            targetCompatibility 1.8
        }
    
    

    classpath 'com.android.tools.build:gradle:3.0.1'

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

    android.useDexArchive=true

  19. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    We should update https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps to include instructions that state you have to have sourceCompatibility and targetCompatibility set to 1.8 now.

  20. dnfield commented on Mar 1, 2019

    @dnfield
    Contributor

    @matthew-carroll do you think there's a good spot for that in particular now? I'm less familiar with the Android side of those instructions.

  21. lsp9876 commented on Mar 1, 2019

    @lsp9876
    Author

    @dnfield I really appreciate your help.

  22. kokizzu commented on Mar 1, 2019

    @kokizzu

    happened to me too since updating to 1.2.1:

    "Initializing gradle...                                              1.1s"
    "Resolving dependencies...                                           2.5s"
    "Running Gradle task 'assembleRelease'...                        "
    "registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
    "registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
    "registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
    "registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
    "registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)"
    "ProGuard, version 6.0.3"
    "Reading input..."
    "Reading program jar [/Users/test1/flutter/bin/cache/artifacts/engine/android-arm-release/flutter.jar] (filtered)"
    "Reading program jar [/Users/test1/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.1.4/android/libs/YouTubeAndroidPlayerApi.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.2.71/4ce93f539e2133f172f1167291a911f83400a5d0/kotlin-stdlib-jdk7-1.2.71.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-core-16.0.1.aar/8d82f67c990f4ccf1068ab8863190675/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/6e590ebbcd0a6fa59f06c820d9896f65/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-messaging-17.3.3.aar/5a55b80b6d9febc6504755e9bdebc49d/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-hls-2.8.0.aar/b6ebe5ad4e6aecba49d32ef98f86c494/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-dash-2.8.0.aar/a18fd807de6dc6e2dd3403d930f1404a/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-smoothstreaming-2.8.0.aar/4173296e95c335e5d7df82d0723336d7/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.8.0.aar/91bcac8b16eba2f41e05b394458968aa/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/multidex-1.0.2.aar/b081b330a3b6b6b3d8d0a4e3ab42dbb3/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.2.71/d9717625bb3c731561251f8dd2c67a1011d6764c/kotlin-stdlib-1.2.71.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-measurement-connector-impl-16.0.1.aar/42c445b356b2556fbfead341e556f905/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-analytics-16.0.1.aar/0a69cdcb4e64da506b8a8088629c3d86/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-analytics-impl-16.1.1.aar/96ba7ee2c2e5af3755a778f26b0eddbe/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-iid-17.0.3.aar/38f97273deec40a6fcd240b2fb361342/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-common-16.0.3.aar/bda822336da864bb4f868c7dd3646a74/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-iid-interop-16.0.1.aar/2a3d4c98729a85c692342f6437de0db8/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-base-16.0.1.aar/ff2e8610702dde6fd62ac68e90210d93/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-tasks-16.0.1.aar/1ff711fd18038c49696e7635cac469ff/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/firebase-measurement-connector-17.0.1.aar/252b3639f56525069f70a1d7ff48be22/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-stats-16.0.1.aar/47f36fe3fd30465012c9e1511f9244ad/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-ads-identifier-15.0.1.aar/40683df0df2e78682f5f9232e0e0ca4e/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-basement-16.0.1.aar/03e2ba0f9e17f1bea2f292c84275723d/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-v4-26.1.0.aar/41f9cb18eba6776579fcfce2c3782b0a/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-fragment-27.1.1.aar/c5a78eb613b0137cb55c58cb56427e50/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/animated-vector-drawable-27.1.1.aar/6d84148aa2acb4c26c8d754048bf1e8b/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-core-ui-27.1.1.aar/7b7031d783076b806089bb12f1d5928d/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-core-utils-27.1.1.aar/a70ecdb4e83ae1648d98e3e010919b20/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-vector-drawable-27.1.1.aar/7f60360104dbe101440653d66454aea8/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-media-compat-26.1.0.aar/11efceda28b32803aed83f6dae27e631/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.1.aar/bf222c57ee91b887f7572350e24098d2/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/com.android.support/support-annotations/27.1.1/39ded76b5e1ce1c5b2688e1d25cdc20ecee32007/support-annotations-27.1.1.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.checkerframework/checker-qual/2.5.0/f03b9f07c2b002f35f81338e6cde3fc191b91951/checker-qual-2.5.0.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.2.71/ba18ca1aa0e40eb6f1865b324af2f4cbb691c1ec/kotlin-stdlib-common-1.2.71.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/play-services-measurement-base-16.0.0.aar/5bd7b5b23f3f42c2cbe173ae70443db3/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/livedata-core-1.1.0.aar/17d2096281591810308f63d2365013f6/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/viewmodel-1.1.0.aar/2390641806bec45067fdc433889d8744/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/runtime-1.1.0.aar/787d5d167559e108df5c8ebedbf3b4bf/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/android.arch.lifecycle/common/1.1.0/edf3f7bfb84a7521d0599efa3b0113a0ee90f85/common-1.1.0.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/transforms-1/files-1.1/runtime-1.1.0.aar/28f01ca08fe9d24c6ab14f29f92d1d00/jars/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/.gradle/caches/modules-2/files-2.1/android.arch.core/common/1.1.0/8007981f7d7540d89cd18471b8e5dcd2b4f99167/common-1.1.0.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/video_player/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/sqflite/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/device_info/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/package_info/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/flutter_web_view/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/pinch_zoom_image/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/flutter_youtube/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/firebase_messaging/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/url_launcher/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/path_provider/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/image_picker_saver/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/shared_preferences/intermediates/intermediate-jars/release/classes.jar] (filtered)"
    "Reading program directory [/Users/test1/unleash2/unleash_mobile/build/app/intermediates/javac/release/compileReleaseJavaWithJavac/classes] (filtered)"
    "Reading program directory [/Users/test1/unleash2/unleash_mobile/build/app/tmp/kotlin-classes/release] (filtered)"
    "Reading program jar [/Users/test1/unleash2/unleash_mobile/build/app/intermediates/transforms/mergeJavaRes/release/0.jar] (filtered)"
    "Reading library jar [/Users/test1/Library/Android/sdk/platforms/android-27/android.jar]"
    "Reading library jar [/Users/test1/Library/Android/sdk/build-tools/28.0.3/core-lambda-stubs.jar]"
    "Reading library jar [/Users/test1/Library/Android/sdk/platforms/android-27/optional/org.apache.http.legacy.jar]"
    "Initializing..."
    "Note: the configuration refers to the unknown class 'com.google.android.gms.common.api.internal.BasePendingResult$ReleasableResultGuardian'"
    Warning: io.flutter.plugin.platform.PlatformPlugin: can't find referenced method 'ActivityManager$TaskDescription(java.lang.String,int,int)' in library class android.app.ActivityManager$TaskDescription
    Warning: io.flutter.view.ResourceExtractor: can't find referenced method 'long getLongVersionCode()' in library class android.content.pm.PackageInfo
    "Note: com.google.android.exoplayer2.util.Util: can't find dynamically referenced class android.os.SystemProperties"
    "Note: com.google.android.gms.common.util.WorkSourceUtil: can't find dynamically referenced class android.os.WorkSource$WorkChain"
    "Note: com.google.android.gms.internal.measurement.zzaai: can't find dynamically referenced class com.google.protobuf.DescriptorMessageInfoFactory"
    "Note: com.google.android.gms.internal.measurement.zzaan: can't find dynamically referenced class com.google.protobuf.MapFieldSchemaFull"
    "Note: com.google.android.gms.internal.measurement.zzaax: can't find dynamically referenced class com.google.protobuf.NewInstanceSchemaFull"
    "Note: com.google.android.gms.internal.measurement.zzabc: can't find dynamically referenced class com.google.protobuf.GeneratedMessage"
    "Note: com.google.android.gms.internal.measurement.zzabc: can't find dynamically referenced class com.google.protobuf.UnknownFieldSetSchema"
    "Note: com.google.android.gms.internal.measurement.zzeh: can't find dynamically referenced class android.os.SystemProperties"
    "Note: com.google.android.gms.internal.measurement.zzhm: can't find dynamically referenced class com.google.android.gms.tagmanager.TagManagerService"
    "Note: com.google.android.gms.internal.measurement.zzza: can't find dynamically referenced class libcore.io.Memory"
    "Note: com.google.android.gms.internal.measurement.zzza: can't find dynamically referenced class org.robolectric.Robolectric"
    "Note: com.google.android.gms.internal.measurement.zzzm: can't find dynamically referenced class com.google.protobuf.ExtensionRegistry"
    "Note: com.google.android.gms.internal.measurement.zzzn: can't find dynamically referenced class com.google.protobuf.Extension"
    "Note: com.google.android.gms.internal.measurement.zzzq: can't find dynamically referenced class com.google.protobuf.ExtensionSchemaFull"
    "Note: com.google.android.youtube.player.internal.aa: can't find dynamically referenced class com.google.android.youtube.api.locallylinked.LocallyLinkedFactory"
    "Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations"
    "Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE8PlatformImplementations"
    "Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE7PlatformImplementations"
    "Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class kotlin.reflect.jvm.internal.ReflectionFactoryImpl"
    "Note: the configuration refers to the unknown field 'com.google.android.gms.common.api.internal.BasePendingResult$ReleasableResultGuardian mResultGuardian' in class 'com.google.android.gms.common.api.internal.BasePendingResult'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTimelineChanged(com.google.android.exoplayer2.Timeline,java.lang.Object,int); }', but not the descriptor class 'com.google.android.exoplayer2.Timeline'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTracksChanged(com.google.android.exoplayer2.source.TrackGroupArray,com.google.android.exoplayer2.trackselection.TrackSelectionArray); }', but not the descriptor class 'com.google.android.exoplayer2.source.TrackGroupArray'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTracksChanged(com.google.android.exoplayer2.source.TrackGroupArray,com.google.android.exoplayer2.trackselection.TrackSelectionArray); }', but not the descriptor class 'com.google.android.exoplayer2.trackselection.TrackSelectionArray'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onPlayerError(com.google.android.exoplayer2.ExoPlaybackException); }', but not the descriptor class 'com.google.android.exoplayer2.ExoPlaybackException'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onPlaybackParametersChanged(com.google.android.exoplayer2.PlaybackParameters); }', but not the descriptor class 'com.google.android.exoplayer2.PlaybackParameters'"
    "Note: the configuration keeps the entry point 'com.google.android.exoplayer2.Player$DefaultEventListener { void onTimelineChanged(com.google.android.exoplayer2.Timeline,java.lang.Object); }', but not the descriptor class 'com.google.android.exoplayer2.Timeline'"
    "Note: the configuration keeps the entry point 'com.google.android.gms.common.api.internal.LifecycleCallback { com.google.android.gms.common.api.internal.LifecycleFragment getChimeraLifecycleFragmentImpl(com.google.android.gms.common.api.internal.LifecycleActivity); }', but not the descriptor class 'com.google.android.gms.common.api.internal.LifecycleActivity'"
    "Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { AppMeasurement(com.google.android.gms.internal.measurement.zzgn); }', but not the descriptor class 'com.google.android.gms.internal.measurement.zzgn'"
    "Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void setEventInterceptor(com.google.android.gms.measurement.AppMeasurement$EventInterceptor); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$EventInterceptor'"
    "Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void registerOnMeasurementEventListener(com.google.android.gms.measurement.AppMeasurement$OnEventListener); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$OnEventListener'"
    "Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void unregisterOnMeasurementEventListener(com.google.android.gms.measurement.AppMeasurement$OnEventListener); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$OnEventListener'"
    "Note: the configuration keeps the entry point 'com.google.android.youtube.player.YouTubePlayerView { YouTubePlayerView(android.content.Context,android.util.AttributeSet,int,com.google.android.youtube.player.YouTubePlayerView$b); }', but not the descriptor class 'com.google.android.youtube.player.YouTubePlayerView$b'"
    "Note: the configuration keeps the entry point 'com.google.firebase.analytics.FirebaseAnalytics { FirebaseAnalytics(com.google.android.gms.internal.measurement.zzgn); }', but not the descriptor class 'com.google.android.gms.internal.measurement.zzgn'"
    "Note: the configuration keeps the entry point 'com.google.firebase.iid.FirebaseInstanceId { com.google.firebase.iid.FirebaseInstanceId getInstance(com.google.firebase.FirebaseApp); }', but not the descriptor class 'com.google.firebase.FirebaseApp'"
    "Note: the configuration keeps the entry point 'com.google.firebase.iid.zzb { void zza(com.google.firebase.iid.zzb,android.content.Intent); }', but not the descriptor class 'com.google.firebase.iid.zzb'"
    "Note: the configuration keeps the entry point 'com.google.firebase.messaging.FirebaseMessagingService { void onMessageReceived(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin { java.util.Map parseRemoteMessage(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin$1 { void onComplete(com.google.android.gms.tasks.Task); }', but not the descriptor class 'com.google.android.gms.tasks.Task'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService { void onMessageReceived(com.google.firebase.messaging.RemoteMessage); }', but not the descriptor class 'com.google.firebase.messaging.RemoteMessage'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer { com.google.android.exoplayer2.source.MediaSource buildMediaSource(android.net.Uri,com.google.android.exoplayer2.upstream.DataSource$Factory,android.content.Context); }', but not the descriptor class 'com.google.android.exoplayer2.upstream.DataSource$Factory'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer { void setAudioAttributes(com.google.android.exoplayer2.SimpleExoPlayer); }', but not the descriptor class 'com.google.android.exoplayer2.SimpleExoPlayer'"
    "Note: the configuration keeps the entry point 'io.flutter.plugins.videoplayer.VideoPlayerPlugin$VideoPlayer$2 { void onPlayerError(com.google.android.exoplayer2.ExoPlaybackException); }', but not the descriptor class 'com.google.android.exoplayer2.ExoPlaybackException'"
    "Note: there were 1 references to unknown classes."
    "      You should check your configuration for typos."
    "      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)"
    "Note: there were 1 references to unknown class members."
    "      You should check your configuration for typos."
    "Note: there were 22 unkept descriptor classes in kept class members."
    "      You should consider explicitly keeping the mentioned classes"
    "      (using '-keep')."
    "      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)"
    "Note: there were 19 unresolved dynamic references to classes or interfaces."
    "      You should check if you need to specify additional program jars."
    "      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)"
    "Warning: Exception while processing task java.io.IOException: Please correct the above warnings first."
    "Thread(Tasks limiter_2): destruction"
    Warning: there were 2 unresolved references to library class members.
             You probably need to update the library versions.
             (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
    > Job failed, see logs for details
    * 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 47s
    "Running Gradle task 'assembleRelease'...                           48.1s"
    *******************************************************************************************
    The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
    See https://goo.gl/CP92wY for more information on the problem and how to fix it.
    *******************************************************************************************
    Gradle task assembleRelease failed with exit code 1
    

    my build.gradle:

    buildscript {
        ext.kotlin_version = '1.2.71'
        repositories {
            google()
            jcenter()
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:3.2.1'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
            classpath 'com.google.gms:google-services:4.0.1'
        }
    }
    
    allprojects {
        repositories {
            google()
            jcenter()
        }
    }
    
    rootProject.buildDir = '../build'
    subprojects {
        project.buildDir = "${rootProject.buildDir}/${project.name}"
    }
    subprojects {
        project.evaluationDependsOn(':app')
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

    my app/build.gradle:

    def localProperties = new Properties()
    def localPropertiesFile = rootProject.file('local.properties')
    if (localPropertiesFile.exists()) {
        localPropertiesFile.withReader('UTF-8') { reader ->
            localProperties.load(reader)
        }
    }
    
    def flutterRoot = localProperties.getProperty('flutter.sdk')
    if (flutterRoot == null) {
        throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
    }
    
    apply plugin: 'com.android.application'
    apply plugin: 'kotlin-android'
    apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
    
    def keystoreProperties = new Properties()
    def keystorePropertiesFile = rootProject.file('key.properties')
    if (keystorePropertiesFile.exists()) {
        keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
    }
    
    def flutterVersionCode = keystoreProperties.getProperty('flutter.versionCode')
    if (flutterVersionCode == null) {
        flutterVersionCode = '1'
    }
    
    def flutterVersionName = keystoreProperties.getProperty('flutter.versionName')
    if (flutterVersionName == null) {
        flutterVersionName = '0.0.1'
    }
    
    
    android {
        compileSdkVersion 27
        compileOptions {
            sourceCompatibility 1.8
            targetCompatibility 1.8
        }
    
        sourceSets {
            main.java.srcDirs += 'src/main/kotlin'
        }
    
        lintOptions {
            disable 'InvalidPackage'
        }
    
        defaultConfig {
            // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
            applicationId "com.unleashed2"
            minSdkVersion 16
            targetSdkVersion 27
            versionCode flutterVersionCode.toInteger()
            versionName flutterVersionName
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
    
    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
        }
    }
    
        buildTypes {
            release {
                // TODO: Add your own signing config for the release build.
                // Signing with the debug keys for now, so `flutter run --release` works.
                signingConfig signingConfigs.release
    
                minifyEnabled true
                useProguard true
    
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    flutter {
        source '../..'
    }
    
    dependencies {
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'com.google.firebase:firebase-core:16.0.1'
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.google.firebase:firebase-messaging:17.3.1'
    }
    
    apply plugin: 'com.google.gms.google-services'
    

    my gradle version:

    ------------------------------------------------------------
    Gradle 4.7
    ------------------------------------------------------------
    
    Build time:   2018-04-18 09:09:12 UTC
    Revision:     b9a962bf70638332300e7f810689cb2febbd4a6c
    
    Groovy:       2.4.12
    Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
    JVM:          1.8.0_172 (Oracle Corporation 25.172-b11)
    OS:           Mac OS X 10.14.2 x86_64
    

    my flutter doctor output

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.2 18C54, locale en-ID)
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    [✓] Android Studio (version 3.1)
    [✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3)
    [!] VS Code (version 1.30.2)
        ✗ Flutter extension not installed; install from
          https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
    [!] Connected device
        ! No devices available
    
    ! Doctor found issues in 2 categories.
    

    my pubspec.yaml:

    name: test1
    description: A new Flutter project.
    
    version: 1.0.0+1
    
    environment:
      sdk: ">=2.1.0 <3.0.0"
    
    dependencies:
      image: "^2.0.5"
      args: "^1.5.0"
      dart_config:
          git:
            url: https://github.com/MarkOSullivan94/dart_config.git
      flutter:
        sdk: flutter
    
      cupertino_icons: ^0.1.2
      splashscreen: ^1.1.0
      shared_preferences: ^0.4.2
      font_awesome_flutter: ^8.0.1
      uuid: ^1.0.3
      intl: ^0.15.7
      http: ^0.12.0
      moment: ^0.0.1
      flutter_web_view:
        path: flutter_webview
      image_picker_saver: ^0.1.0
      video_player: ^0.7.2
      dio: 1.0.9
      cached_network_image: ^0.5.1
      animated_text_kit: ^1.2.0
      unicorndial: ^1.1.5
      firebase_messaging: ^2.1.0
      percent_indicator: ^1.0.13
      flutter_youtube: ^1.1.4
      device_info: ^0.3.0
      badge:
        path: badge
      stack_trace: ^1.9.2
      modal_progress_hud: ^0.1.2
      url_launcher: ^4.0.3
      package_info: ^0.3.2
      autocomplete_textfield: ^1.6.4
      flutter_typeahead: ^0.5.0
      xml: 3.0.1
      charts_flutter: ^0.5.0
      rxdart: ^0.18.0
      sqflite: any
      path_provider: ^0.4.1
      photo_view: ^0.1.3
      material_search: ^0.2.8
      pinch_zoom_image: ^0.2.5
    
    #    git:
    #      url: git://github.com/kokizzu/flutter_webview.git
    
    dev_dependencies:
      flutter_launcher_icons: "^0.7.0"
      flutter_test:
        sdk: flutter
    
    flutter_icons:
      android: "launcher_icon"
      ios: true
      image_path: "assets/icons/unleashed-app-icon-circle.png"
    
    flutter:
      uses-material-design: true
      assets:
      - assets/icons/unleashed-app-icon-circle.png
      - assets/ul_logo.png
      - assets/unleashed_logo.png
      - assets/unleashedlogo.png
      - assets/we_grow_button.png
      - assets/defaultImage.jpg
      - assets/en.png
      - assets/id.png
      - assets/icons/birthday-date-icon.png
      - assets/icons/edit-profile-emoji.png
      - assets/icons/email-address-icon.png
      - assets/icons/fb-logo.png
      - assets/icons/google-logo.png
      - assets/icons/Ignite Sparks Nurtur.png
      - assets/icons/newsfeed-icon-active.png
      - assets/icons/newsfeed-icon-rest.png
      - assets/icons/notif-icon-active.png
      - assets/icons/notif-icon-rest.png
      - assets/icons/phone-number-icon.png
      - assets/icons/profile-bg.png
      - assets/icons/profile-icon-active.png
      - assets/icons/profile-icon-rest.png
      - assets/icons/profile-name-icon.png
      - assets/icons/reset-password-emoji.png
      - assets/icons/send-message-icon.png
      - assets/icons/splash-img.png
      - assets/icons/task-icon-active.png
      - assets/icons/task-icon-rest.png
      - assets/icons/tup-icon-active.png
      - assets/icons/tup-icon-rest.png
      - assets/unleash_uniform_size.jpeg
    
      fonts:
      - family: Pacifico
        fonts:
        - asset: assets/fonts/Pacifico-Regular.ttf
          weight: 400
      - family: Seaside
        fonts:
        - asset: assets/fonts/Seaside.ttf
          weight: 400
      - family: Poppins Medium
        fonts:
        - asset: assets/fonts/Poppins-Medium.ttf
          weight: 400
      - family: Poppins Reguler
        fonts:
        - asset: assets/fonts/Poppins-Regular.ttf
          weight: 400
      - family: Poppins Bold
        fonts:
        - asset: assets/fonts/Poppins-Bold.ttf
          weight: 400
      - family: Poppins Extra Bold
        fonts:
        - asset: assets/fonts/Poppins-ExtraBold.ttf
          weight: 400
      - family: Raleway Reguler
        fonts:
        - asset: assets/fonts/Raleway-Regular.ttf
          weight: 400
    
  23. kokizzu commented on Mar 1, 2019

    @kokizzu

    Nevermind, that's the same bug as this one #11099
    removing minifyEnabled solve the issue for now

  24. SDILogin commented on Mar 5, 2019

    @SDILogin

    @kokizzu looks like your build failed because of this warnings:

    Warning: io.flutter.plugin.platform.PlatformPlugin: can't find referenced method 'ActivityManager$TaskDescription(java.lang.String,int,int)' in library class android.app.ActivityManager$TaskDescription
    Warning: io.flutter.view.ResourceExtractor: can't find referenced method 'long getLongVersionCode()' in library class android.content.pm.PackageInfo

    Don't know if it's good solution, but maybe you can try to add something like this to your proguard rules file

    -dontwarn io.flutter.plugin.platform.PlatformPlugin 
    -dontwarn io.flutter.view.ResourceExtractor
    

    Hope it can help to keep proguard enabled for release builds

  25. github-actions commented on Aug 14, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  26. locked as resolved and limited conversation to collaborators on Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions