flutter_rtmppublisher
flutter_rtmppublisher copied to clipboard
Android build error
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?
I error same Please help
Same issue
Same issue
same issue,any updates?