flutter_rtmppublisher icon indicating copy to clipboard operation
flutter_rtmppublisher copied to clipboard

Android build error

Open emilien-io opened this issue 3 years ago • 4 comments

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?

emilien-io avatar Nov 24 '21 17:11 emilien-io

I error same Please help

PongPloy2016 avatar Nov 26 '21 18:11 PongPloy2016

Same issue

olegys avatar Dec 04 '21 21:12 olegys

Same issue

Morris-Mao avatar Dec 31 '21 05:12 Morris-Mao

same issue,any updates?

cafstechnology avatar Feb 04 '22 04:02 cafstechnology