pusheco / pushe-flutter

Pushe plugin for Flutter framework
Other
14 stars 4 forks source link

❓ [ERROR]: Duplicate entry - rxjava2 #13

Closed onyxtm closed 4 years ago

onyxtm commented 4 years ago

من وقتی پوشه رو نصب کردم و میخواستم بیلد بگیرم این ارور رو دریافت کردم


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class io.reactivex.BackpressureStrategy found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Completable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.CompletableEmitter found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.CompletableObserver found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.CompletableOnSubscribe found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.CompletableSource found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Emitter found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Flowable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Maybe found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.MaybeEmitter found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.MaybeObserver found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.MaybeOnSubscribe found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.MaybeSource found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Observable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Observable$1 found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.ObservableEmitter found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.ObservableOnSubscribe found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.ObservableOperator found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.ObservableSource found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.ObservableTransformer found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Observer found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Scheduler found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Scheduler$Worker found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.Single found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.SingleEmitter found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.SingleObserver found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.SingleOnSubscribe found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.SingleSource found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.annotations.CheckReturnValue found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.annotations.NonNull found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.annotations.Nullable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.disposables.Disposable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.disposables.Disposables found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.CompositeException found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.Exceptions found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.MissingBackpressureException found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.OnErrorNotImplementedException found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.ProtocolViolationException found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.exceptions.UndeliverableException found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.Action found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.BiConsumer found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.BiFunction found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.Consumer found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.Function found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.functions.Predicate found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.internal.functions.Functions found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.observables.GroupedObservable found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.plugins.RxJavaPlugins found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.schedulers.Schedulers found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.schedulers.TestScheduler found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)
  Duplicate class io.reactivex.subjects.PublishSubject found in modules jetified-rxjava-2.0.4.jar (co.pushe.plus:rxjava:2.0.4) and jetified-rxjava-2.0.6.jar (io.reactivex.rxjava2:rxjava:2.0.6)

  Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

* 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 13s
Finished with error: Gradle task assembleDebug failed with exit code 1
mahdi-malv commented 4 years ago
سلام ممنونم از این که این مشکل رو به ما اطلاع دادید. احتمالا از کتابخونه‌ای در پروژه استفاده کردید که از rxjava استفاده کرده و این باعث شده با یکی از ماژول‌های داخلی پلاگین پوشه تداخل ایجاد بشه. این مورد رو در نسخه‌ی بعدی رفع خواهیم کرد و نسخه‌ی پایدار بزودی منتشر میشه. اما در صورتی که براتون مقدور نیست تا ریلیز بعدی که ممکنه چند هفته‌ای طول بکشه صبر کنید لطفا از برنچی که این فیکس رو در حال حاضر داره استفاده کنید ببینید که مشکلتون رفع میشه؟ برای استفاده از این برنچ لطفا در فایل `pubspec.yml` بجای `pushe_flutter: 2.1.0` از گیت پلاگین رو با استفاده از کد زیر دریافت کنید:
pushe_flutter:
    git:
      url: git://github.com/pusheco/pushe-flutter
      ref: rxjava-hotfix1
این برنچ دقیقا کد نسخه‌ی آخر پلاگین رو داره + تغییرات لازم برای رفع این خطا لطفا در صورتی که مشکل حل شد یا کماکان وجود داشت در همین ایشو اطلاع بدید. ممنون