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 126 forks source link

Flutter fails to build after adding camera_with_rtmp dependency #14

Closed alobodanov closed 4 years ago

alobodanov commented 4 years ago

After installing camera_with_rtmp: ^0.2.2 onto my project, I started to get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > File 'com.android.builder.files.ZipCentralDirectory@123f8712' was deleted, but previous version not found in cache

* 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 1m 9s
Exception: Gradle task assembleDebug failed with exit code 1

My Flutter version: 1.17.3 My Dart version: 2.8.4

pinkfish commented 4 years ago

I think this is probably due to something else? I would try and clean first. I just upgraded flutter and things are still building?

MR-MaoJiu commented 4 years ago

How can I solve this problem

jmrboosties commented 4 years ago

I just tried to implement this so I might find the solution, but for what it's worth I have the same issue with a different point of failure:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'project.clj'

* 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 18s
Exception: Gradle task assembleDebug failed with exit code 1

I'll update here if I figure something out.

jmrboosties commented 4 years ago

Solved for me: it was just the packaging options exclude thing you mentioned in another issue. I'd suggest putting that in the README. Thanks for the library!

pinkfish commented 4 years ago

Right, the packaging options excluded. I though this was in the readme?

pinkfish commented 4 years ago

Opps, it isn't. Added in some docs.