pinkfish / flutter_rtmppublisher

Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
BSD 3-Clause "New" or "Revised" License
95 stars 121 forks source link

Android build error #69

Open emilien-io opened 2 years ago

emilien-io commented 2 years ago

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 commented 2 years ago

I error same Please help

olegys commented 2 years ago

Same issue

Morris-Mao commented 2 years ago

Same issue

cafstechnology commented 2 years ago

same issue,any updates?