Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build error #69

Open
emilien-io opened this issue Nov 24, 2021 · 4 comments
Open

Android build error #69

emilien-io opened this issue Nov 24, 2021 · 4 comments

Comments

@emilien-io
Copy link

Hello guys,

First of all thanks for your work. It really helped me a lot.

I have an error when I try to build on Android :

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/X/.pub-cache/git/flutter_rtmppublisher-8a4aac3c93fbdddeefc7980b802a38c5b93b77ce/android/build.gradle' line: 53

* What went wrong:
A problem occurred evaluating project ':camera_with_rtmp'.
> Project with path ':rtplibrary' could not be found in project ':camera_with_rtmp'.

* 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 1s

Also, here is the android object in my app/build.gradle

android {
    compileSdkVersion 30

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        applicationId "com.xxx.xxx"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

    buildTypes {
        release {
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
            firebaseCrashlytics {
                nativeSymbolUploadEnabled true
                strippedNativeLibsDir "build/ndklibs/obj"
                unstrippedNativeLibsDir "build/ndklibs/libs"
            }

        }
    }

    packagingOptions {
        exclude 'project.clj'
    }
}

I am using the main branch since I'm using Flutter 2.5.1.

Anyone got an idea why?

@PongPloy2016
Copy link

I error same Please help

@olegys
Copy link

olegys commented Dec 4, 2021

Same issue

1 similar comment
@Morris-Mao
Copy link

Same issue

@cafstechnology
Copy link

same issue,any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants