Ошибка построения пробела при совместном использовании Cordova plugin darryncampbell-cordova-plugin-intent и cordova-plugin-camera - PullRequest
0 голосов
/ 20 января 2020

Мне нужно использовать эти два плагина Cordova в моем проекте; 1) cordova-plugin-camera 2) com-darryncampbell-cordova-plugin-intent Я не могу собрать, когда использую оба из них вместе (однако, когда я удаляю любой из этих плагинов, он создается успешно.)

в конфигурации. xml:

<preference name="phonegap-version" value="cli-9.0.0" />  
<plugin name="cordova-plugin-camera" spec="~4.1.0" />  
<plugin name="com-darryncampbell-cordova-plugin-intent" source="npm" />

и журнал ошибок PGB:

> Task :app:validateSigningRelease
> Task :app:signingConfigWriterRelease
/.gradle/caches/transforms-1/files-1.1/OneSignal-3.12.5.aar/08319ad370ba36812b472206870adeb1/jars/classes.jar: D8: Type `com.google.android.gms.gcm.GoogleCloudMessaging` was not found, it is required for default or static interface methods desugaring of `java.lang.String com.onesignal.PushRegistratorGCM.getToken(java.lang.String)`
/.gradle/caches/transforms-1/files-1.1/OneSignal-3.12.5.aar/08319ad370ba36812b472206870adeb1/jars/classes.jar: D8: Type `com.amazon.device.iap.PurchasingService` was not found, it is required for default or static interface methods desugaring of `void com.onesignal.TrackAmazonPurchase.setListener()`
/.gradle/caches/transforms-1/files-1.1/OneSignal-3.12.5.aar/08319ad370ba36812b472206870adeb1/jars/classes.jar: D8: Type `com.amazon.device.iap.model.ProductDataResponse$RequestStatus` was not found, it is required for default or static interface methods desugaring of `void com.onesignal.TrackAmazonPurchase$1.<clinit>()`
/.gradle/caches/transforms-1/files-1.1/OneSignal-3.12.5.aar/08319ad370ba36812b472206870adeb1/jars/classes.jar: D8: Interface `com.amazon.device.iap.PurchasingListener` not found. It's needed to make sure desugaring of `com.onesignal.TrackAmazonPurchase$OSPurchasingListener` is correct. Desugaring will assume that this interface has no default method.
> Task :app:transformClassesWithDexBuilderForRelease

> Task :app:transformDexArchiveWithExternalLibsDexMergerForRelease FAILED
D8: Program type already present: android.support.v4.app.INotificationSideChannel

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.app.INotificationSideChannel

* 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 27s
35 actionable tasks: 35 executed
Error: /var/gimlet/tmp/47018788610560/3764927/gradlew: Command failed with exit code 1 Error output:
Note: /var/gimlet/tmp/47018788610560/3764927/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
D8: Program type already present: android.support.v4.app.INotificationSideChannel

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForRelease'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.app.INotificationSideChannel

* 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 27s
    at ChildProcess.whenDone (/var/gimlet/tmp/47018788610560/3764927/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
...