regulaforensics / DocumentReader-Cordova-Plugin

Cordova plugin for reading and validation of identification documents
https://mobile.regulaforensics.com/
4 stars 4 forks source link

D8: Program type already present: com.regula.core.NativeWrapper$RequestResponseTransceiver #7

Closed Zrnik closed 4 years ago

Zrnik commented 4 years ago

Installation:

Microsoft Windows [Version 10.0.17763.864]
(c) 2018 Microsoft Corporation. Všechna práva vyhrazena.

C:\WINDOWS\system32>cd c:/test

c:\test>cordova create regulatest
Creating a new cordova project.

c:\test>cd regulatest

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-api-beta --variable CAMERA_USAGE_DESCRIPTION="To take photo" --variable READ_EXTERNAL_STORAGE="To choose photo"
Adding cordova-plugin-document-reader-api-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-bounds-beta
Adding cordova-plugin-document-reader-core-bounds-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-mrz-beta
Adding cordova-plugin-document-reader-core-mrz-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-mrzrfid-beta
Adding cordova-plugin-document-reader-core-mrzrfid-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-barcode-beta
Adding cordova-plugin-document-reader-core-barcode-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-barcodemrz-beta
Adding cordova-plugin-document-reader-core-barcodemrz-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-doctype-beta
Adding cordova-plugin-document-reader-core-doctype-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-ocrandmrz-beta
Adding cordova-plugin-document-reader-core-ocrandmrz-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-full-beta
Adding cordova-plugin-document-reader-core-full-beta to package.json

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-fullrfid-beta
Adding cordova-plugin-document-reader-core-fullrfid-beta to package.json    

c:\test\regulatest>cordova plugin add cordova-plugin-document-reader-core-fullrfid-beta
Adding cordova-plugin-document-reader-core-fullrfid-beta to package.json

c:\test\regulatest>cordova platform add android
Using cordova-fetch for cordova-android@^8.0.0
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: io.cordova.hellocordova
        Name: HelloCordova
        Activity: MainActivity
        Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@8.1.0
Installing "cordova-plugin-document-reader-api-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-barcode-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-barcodemrz-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-bounds-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-doctype-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-full-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-fullrfid-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-mrz-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-mrzrfid-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-document-reader-core-ocrandmrz-beta" for android
Subproject Path: CordovaLib
Subproject Path: app
Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for android
Adding cordova-plugin-whitelist to package.json

c:\test\regulatest>cordova build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\ProgramData\Microsoft\AndroidSDK\25 (DEPRECATED)
Picked up _JAVA_OPTIONS: -Xmx512M
Starting a Gradle Daemon, 1 busy and 1 incompatible and 2 stopped Daemons could not be reused, use --status for details

BUILD SUCCESSFUL in 12s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details

> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

> Task :app:preBuild UP-TO-DATE
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preDebugBuild UP-TO-DATE
> Task :CordovaLib:checkDebugManifest
> Task :CordovaLib:processDebugManifest
> Task :app:preDebugBuild
> Task :CordovaLib:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :CordovaLib:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript
> Task :app:checkDebugManifest
> Task :app:generateDebugBuildConfig
> Task :app:prepareLintJar
> Task :app:generateDebugSources
> Task :CordovaLib:compileDebugRenderscript
> Task :CordovaLib:generateDebugBuildConfig
> Task :CordovaLib:generateDebugResValues
> Task :CordovaLib:generateDebugResources
> Task :CordovaLib:packageDebugResources
> Task :CordovaLib:generateDebugRFile
> Task :CordovaLib:prepareLintJar
> Task :CordovaLib:generateDebugSources
> Task :CordovaLib:javaPreCompileDebug
> Task :CordovaLib:compileDebugJavaWithJavac
> Task :CordovaLib:processDebugJavaRes NO-SOURCE
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
> Task :app:javaPreCompileDebug
> Task :app:mainApkListPersistenceDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:processDebugManifest
> Task :app:processDebugResources

Note: C:\test\regulatest\platforms\android\app\src\main\java\cordova.plugin.documentreader\RegulaConfig.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :app:compileDebugJavaWithJavac

> Task :app:compileDebugNdk NO-SOURCE
> Task :app:compileDebugSources
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders
> Task :app:generateDebugAssets
> Task :CordovaLib:mergeDebugShaders
> Task :CordovaLib:compileDebugShaders
> Task :CordovaLib:generateDebugAssets
> Task :CordovaLib:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:validateSigningDebug
> Task :app:signingConfigWriterDebug
> Task :app:transformClassesWithDexBuilderForDebug

D8: Program type already present: com.regula.core.NativeWrapper$RequestResponseTransceiver

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> 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: com.regula.core.NativeWrapper$RequestResponseTransceiver

* 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 40s
> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
34 actionable tasks: 34 executed
c:\test\regulatest\platforms\android\gradlew: Command failed with exit code 1 Error output:
Note: C:\test\regulatest\platforms\android\app\src\main\java\cordova.plugin.documentreader\RegulaConfig.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
D8: Program type already present: com.regula.core.NativeWrapper$RequestResponseTransceiver

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> 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: com.regula.core.NativeWrapper$RequestResponseTransceiver

* 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 40s
Picked up _JAVA_OPTIONS: -Xmx512M

did i do something wrong?

Zrnik commented 4 years ago

I have bugs in brain already :D im not suposed install all of it :D sorry for my stupidity :D