-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Build failed with cordova android 7.0.0 and phonegap-plugin-barcodescanner 7.0.2 #606
Comments
I get essentially the same error when trying cordova 6.4.0 as well, e.g. start a new project with the same steps except Any suggestions greatly appreciated! A few other issues may be duplicates, I have tried the suggested workarounds there as well and none seem to be working for me (e.g. #535 and #595 |
btw I faced a similar issue with older versions about 8 months ago - the attached discussion on this issue (jeduan/cordova-plugin-facebook4#507) indicates the problem is with barcodescanner and not facebook plugin. I'm not enough of an Android person to say but lots of investigative detail there... |
I have the same issue. When both barcode and facebook4 run in isolation, build fails. When used separately without the other, build succeeds. I tried many versions of facebook4 plugin and found, on cli-8.0.0 with facebook4 version 1.7.4 and with the latest on barcode, build succeeds. |
Thanks wizajay. That worked fine. I just removed the current version: ionic cordova plugin remove cordova-plugin-facebook4 and put on the 1.7.4 version ionic cordova plugin add cordova-plugin-facebook4@1.7.4 and it all compiled fine |
@viking2917 the facebook plugin includes the facebook sdk which includes a library that is used by many other Android SDK's. This is what is causing the Unable to merge dex error. I don't currently have a work around other than using an older version of the Facebook plugin that uses an older version of the Facebook SDK. |
Thanks @macdonst; appreciate you looking into it. Like others I am using the @1.7.4 version with success for the moment. |
Oy, thats not good. facebook4 is up to 1.9.1 - so it will be several revs behind. Have you tried using |
@rolinger thanks for the suggestion; looks promising, except that I use the push plugin which the gradle-release plugin suggests will cause it problems. So I have not actually tried it. |
Hello, EDIT: in my case, I resolved removing this string: EDIT2: during my tests, I discoverd that my problem was caused by a sort of incompatibility with phonegap-plugin-push. |
I had the same experience as @studiostart, this started breaking without any apparent changes on my part and my previous workaround of using 1.7.4 of the Facebook plugin does not help. I took the same steps as @studiostart, more specifically I deleted
from the file
and then did
And that seemed to fix the issue. I am too much of an Android n00b to know whether this causing some other problem I haven't though of, or whether this would make an appropriate pull request.... @macdonst do you think this is a hack or a general solution? |
@viking2917 it worked for me, thanks! |
@viking2917 's solution allowed it to build, but the plugin failed to run in my app. Solution: rather than remove My story:
plugins:
Ionic CLI 3.10.1 I found a note on Android's Documentation:
Perhaps specifying which v4 modules this plugin depends on will be a better fix then simply removing v4 completely? Ah well lets give it a try. I removed
Pretty clear the plugin depends on some v4 modules. I tried adding localbroadcastmanager as a dependency with no luck. Searching around for failed attempts to add this particular dependency lead me to a suggestion to add: |
@jfbloom22 that works for me too :) |
@jfbloom22 thanks it's working wow...... |
@jfbloom22 that works for me too :) |
@jfbloom22 excelente solución, muchas gracias |
@jfbloom22 Nice find. Thanks. For PGB, I forked this plugin repo and edited the gradle file as @jfbloom22 had mentioned and using it instead. But still FB plugin works only with version 1.7.4
Hope to see a permanent solution to this issue. |
Latest version 7.0.3 with commit #621 fix this problem |
When I try to use this fixed version I get this error:
Any ideas? |
Fix for the Facebook plugin was to force the Facebook SDK to version 4.25.0.
Then add to your config.xml <platform name="android">
<replace-string file="project.properties" find="regex:com\.facebook\.android\:facebook-android-sdk\:[\+0-9\.]+" replace="com.facebook.android:facebook-android-sdk:4.25.0" />
</platform> Finally run Works with the latest 1.9.1 version of cordova-facebook-plugin4 |
FAILED
My conclusionNow I have the same problem on : cli packages: (C:\Users\hmishyn\AppData\Roaming\npm\node_modules)
global packages:
local packages:
System:
And my plugins:
And problem really only in BarcodeScanner ! |
Hi to all. I fixed this problem. Steps:
It works for me ! |
I have been working on fixing this issue for almost a week and Im getting nowhere. Ive tried everything and nothing makes a difference. Im literally at my wits end. Could someone who has fixed the issue please post the versions of 'Barcode Scanner' & 'Facebook4' they are running. Along with their ionic info. I feel like i have already tried every conceivable combination aswell as attempting to edit the barcodescanner.gradle file. Much love and thanks to anyone who can help. |
I am traveling but will try to post info in next day or two.
…On Thu, Apr 12, 2018, 3:36 PM Hayden Cassar ***@***.***> wrote:
I have been working on fixing this issue for almost a week and Im getting
nowhere. Ive tried everything and nothing makes a difference. Im literally
at my wits end.
Could someone who has fixed the issue please post the versions of 'Barcode
Scanner' & 'Facebook4' they are running. Along with their ionic info.
I feel like i have already tried every conceivable combination aswell as
attempting to edit the barcodescanner.gradle file.
Much love and thanks to anyone who can help.
@viking2917 <https://github.com/viking2917> @jfbloom22
<https://github.com/jfbloom22>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#606 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVcVQ_4m8wMjDmv7S5Pfq8p5sTt-vu7ks5tnvXVgaJpZM4R0-aG>
.
|
@viking2917 Thanks so much. Really appreciated. |
Hello. I fixed this problem with barcode scanner on ver 7.1.0, but now I merge some branch with other plugins and it breaks again !
Now I have barcode scanner v. 7.1.1 and no “Facebook” plugin and I still get “unableToMergeDex” error. I have it ! I already spent 3-4 working days trying to solve this problem, but it happened again ! :(
… On 12. Apr 2018, at 10:17, Hayden Cassar ***@***.***> wrote:
@viking2917 <https://github.com/viking2917> Thanks so much. Really appreciated.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#606 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJ_fYJ0wwHYpYdJe1k1Q9bXtvXm8SMMwks5tnv-FgaJpZM4R0-aG>.
|
@Velm14 Im the same. Ive tried every combination of versions of Facebook4 & Barcodescanner and I still get 'unableToMergeDex'. Hopefully someone can help us out. Good luck. |
Now I am trying to push app to AppStore, but when I built app for IOS, I got that it doesn’t work at all. Even it does not run camera… WTF with this plugin??? My ass is on fire !
… On 12. Apr 2018, at 10:53, Hayden Cassar ***@***.***> wrote:
@Velm14 <https://github.com/Velm14> Im the same. Ive tried every combination of versions of Facebook4 & Barcodescanner and I still get 'unableToMergeDex'. Hopefully someone can help us out. Good luck.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#606 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJ_fYCJ9xINowI_IXrDbfb4xnCKGxGLtks5tnwgIgaJpZM4R0-aG>.
|
@hcassar93 here's my info. Happy to provide more info if you want something specific. First, I have noted that my app and environment at least is sensitive to the order of install of the plugins. if I install barcode scanner first it barfs.. I install Facebook (v.1.7.4) (then other plugins such as Push), make sure I add the android platform after all that. then I install other plugins, and near the the end the barcode scanner ionic cordova plugin add cordova-plugin-facebook4@1.7.4 --save --variable APP_ID="" --variable APP_NAME="" Because of various conflicts on plugins (I think unrelated to barcode scanner), I have to edit my project.properties file to set: But again I think that's unrelated to the barcode scanner. The way I got this to work, I created a clean ionic project and just tried to get it to build with no other components, googling for answers when I had problems. I just kept a log of the order I did stuff and the redid it in my project in that order. Details: Here's my plugin list: (in particular, ionic cordova plugin list
output of ionic info cli packages: (/Users/markwatkins/.nvm/versions/node/v8.9.4/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
|
@hcassar93 To make it work I am running: cli packages: (/Users/rogier/DEV/embrosa_v3/node_modules)
global packages:
local packages:
System:
Hopefully this will help you? |
@hcassar93 looking through trying to see if there is any pattern between the various versions of plugins and Cordova and what not. Can you share your setup? @ivanosire mentioned that a fix was merged into version 7.0.3. This fix was similar to my solution above, but looks more correct: 16c97b7 Basically they moved the requirement for the support v4 framework from he gradle file to plugin.xml file. The facebook plugin also has a plugin.xml file and requires the android v4 framework. Line 64: |
I'm using the barcodescanner in my Ionic app (together with the facebook plugin). Here is, what I have done to get it working:
I hope this helps someone! |
|
When I saw @mgreg89 's comment, I thought: "I don't wanna do all that crap!" so I started with #4 Ps there is no Facebook plugin in my app. I found several posts about this error & they all were regarding Fb plugin and they also all had the BarcodeScanner plugin which is what I added before it stopped working. |
@mgreg89 Those 4 steps did it for me. Thank you! |
Thank you, now also cordova.plugins.diagnostic works fine! |
Agregar a build.gradle allprojects { Y listo! |
I got same error message:
And I have managed to fix it so I am writing this fix because I have not find it on the internet...
I put this project.properties in
Be careful with this when adding next plugin, because this line will always override that project.properties inside These are my plugins:
run |
I have been dealing with the conflict between barcodescanner plugin and facebook4 plugin for 2 days now reading and applying all suggestions without success, and just now I was able to build it successfully on Android, following these steps:
|
works for me. not using barcode scanner. but got this error. so tried cordova clean and it can compile fine |
@Velm14 Fixed. |
same problem here... |
In my case https://stackoverflow.com/a/49274288/7490381 was a solution. |
I can scan barcode but when I try to scan barcode, It's not scan. |
Closing as duplicate of #535 |
This thread has been automatically locked. |
Build failed with cordova android 7.0.0 and phonegap-plugin-barcodescanner 7.0.2
Started with the Tutorial project for Ionic v1. Loaded the Facebook plugin (https://github.com/jeduan/cordova-plugin-facebook4) and Android compilation is fine. Added 7.0.2 Barcode scanner and now getting Dex compile errors of the form:
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
I have had trouble with older versions of Ionic CLI, Facebook and BarCodeScanner in conflict, so I am suspicious it is related to that but am not sure nor know how to confirm.
Expected Behaviour
Build should succeed.
Actual Behaviour
Build fails with error
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Marks-Air-2:BarCodeTest markwatkins$ ionic info
cli packages: (/Users/markwatkins/.nvm/versions/node/v8.9.4/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
Marks-Air-2:BarCodeTest markwatkins$ cordova plugin list
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-barcodescanner 7.0.2 "BarcodeScanner"
Marks-Air-2:BarCodeTest markwatkins$
Marks-Air-2:BarCodeTest markwatkins$ cordova --version
8.0.0
Marks-Air-2:BarCodeTest markwatkins$ cordova platforms
Installed platforms:
android 7.0.0
Available platforms:
browser ~5.0.1
ios ~4.5.4
osx ~4.0.1
windows ~5.0.0
www ^3.12.0
Plugin version
Marks-Air-2:BarCodeTest $ cordova plugin version | grep phonegap-plugin-barcodescanner
phonegap-plugin-barcodescanner 7.0.2 "BarcodeScanner"
Sample Code that illustrates the problem
Logs taken while reproducing problem
complete log below
Marks-Air-2:Sites mw$ more foo.bash
#bash
ionic start BarCodeTest tutorial
cd BarCodeTest
ionic cordova platform add android
ionic cordova build android
cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="" --variable APP_NAME="bookship"
ionic cordova build android
cordova plugin add phonegap-plugin-barcodescanner
npm install --save @ionic-native/barcode-scanner
ionic cordova build android
Marks-Air-2:Sites mw$ ./foo.bash
✔ Creating directory ./BarCodeTest - done!
✔ Downloading and extracting tutorial starter - done!
? Would you like to integrate your new app with Cordova to target native iOS and Android? Yes
✔ Personalizing ionic.config.json and package.json - done!
Installing dependencies may take several minutes.
✨ IONIC DEVAPP ✨
Speed up development with the Ionic DevApp, our fast, on-device testing mobile app
️--> Install DevApp: https://bit.ly/ionic-dev-app <--
🔥 IONIC PRO 🔥
Supercharge your Ionic development with the Ionic Pro SDK
Learn more about Ionic Pro: https://ionicframework.com/products
? Install the free Ionic Pro SDK and connect your app? No
Next Steps:
✔ Creating ./www directory for you - done!
Adding android project...
Creating Cordova project for the Android platform:
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.0.0
Android Studio project detected
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for "cordova-plugin-splashscreen" to config.xml
Discovered plugin "cordova-plugin-ionic-webview" in config.xml. Adding it to the project
Installing "cordova-plugin-ionic-webview" for android
Adding cordova-plugin-ionic-webview to package.json
Saved plugin info for "cordova-plugin-ionic-webview" to config.xml
Discovered plugin "cordova-plugin-ionic-keyboard" in config.xml. Adding it to the project
Installing "cordova-plugin-ionic-keyboard" for android
Adding cordova-plugin-ionic-keyboard to package.json
Saved plugin info for "cordova-plugin-ionic-keyboard" to config.xml
--save flag or autosave detected
Saving android@~7.0.0 into config.xml file ...
ANDROID_HOME=/Users/mw/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
studio
:wrapper
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
[16:37:27] lint finished in 6.39 s
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_1jyq10tezdufy71arrq2cemip.run(/Users/mw/Sites/BarCodeTest/platforms/android/app/build.gradle:143)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:checkDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processDebugManifest
:CordovaLib:javaPreCompileDebug
:CordovaLib:processDebugJavaRes NO-SOURCE
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript
NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:compileDebugNdk
NO-SOURCE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:extractTryWithResourcesSupportJarDebug
:CordovaLib:compileDebugNdk NO-SOURCE
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug
:app:mergeDebugJniLibFolders
:app:processDebugJavaRes NO-SOURCE
:app:validateSigningDebug
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:compileDebugSources
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
:app:transformDexArchiveWithDexMergerForDebug
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:transformResourcesWithMergeJavaResForDebug
:app:packageDebug
:app:assembleDebug
:app:cdvBuildDebug
BUILD SUCCESSFUL in 10s
47 actionable tasks: 47 executed
Built the following apk(s):
/Users/mw/Sites/BarCodeTest/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Installing "cordova-plugin-facebook4" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-facebook4 to package.json
Saved plugin info for "cordova-plugin-facebook4" to config.xml
Running app-scripts build: --platform android --target cordova
[16:38:01] build dev started ...
[16:38:01] clean started ...
[16:38:01] clean finished in 9 ms
[16:38:01] copy started ...
[16:38:02] deeplinks started ...
[16:38:02] deeplinks finished in 34 ms
[16:38:02] transpile started ...
[16:38:08] transpile finished in 6.18 s
[16:38:08] preprocess started ...
[16:38:08] preprocess finished in 1 ms
[16:38:08] webpack started ...
[16:38:08] copy finished in 6.41 s
[16:38:16] webpack finished in 8.60 s
[16:38:16] sass started ...
Without
from
option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or toundefined
to prevent this warning.[16:38:18] sass finished in 1.37 s
[16:38:18] postprocess started ...
[16:38:18] postprocess finished in 7 ms
[16:38:18] lint started ...
[16:38:18] build dev finished in 16.44 s
ANDROID_HOME=/Users/mw/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_1jyq10tezdufy71arrq2cemip.run(/Users/mw/Sites/BarCodeTest/platforms/android/app/build.gradle:143)
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
:CordovaLib:preBuild
UP-TO-DATE
:CordovaLib:preDebugBuild
UP-TO-DATE
:CordovaLib:compileDebugAidl
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:checkDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:prepareLintJar
UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources
UP-TO-DATE
:CordovaLib:packageDebugResources
UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources
UP-TO-DATE
:CordovaLib:javaPreCompileDebug
UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE
:CordovaLib:processDebugJavaRes
NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UP-TO-DATE
:app:preBuild
UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
UP-TO-DATE
:app:checkDebugManifest
UP-TO-DATE
:app:generateDebugBuildConfig
UP-TO-DATE
:app:prepareLintJar
UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
[16:38:23] lint finished in 5.46 s
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
Note: /Users/mw/Sites/BarCodeTest/platforms/android/app/src/main/java/org/apache/cordova/facebook/ConnectPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
:app:transformDexArchiveWithDexMergerForDebug
:CordovaLib:compileDebugNdk NO-SOURCE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug
:app:processDebugJavaRes
NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug
:app:validateSigningDebug
:app:packageDebug
:app:assembleDebug
:app:cdvBuildDebug
BUILD SUCCESSFUL in 22s
47 actionable tasks: 17 executed, 30 up-to-date
Built the following apk(s):
/Users/mw/Sites/BarCodeTest/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Installing "phonegap-plugin-barcodescanner" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Adding phonegap-plugin-barcodescanner to package.json
Saved plugin info for "phonegap-plugin-barcodescanner" to config.xml
added 1 package in 5.727s
Running app-scripts build: --platform android --target cordova
[16:39:09] build dev started ...
[16:39:09] clean started ...
[16:39:09] clean finished in 3 ms
[16:39:09] copy started ...
[16:39:09] deeplinks started ...
[16:39:09] deeplinks finished in 24 ms
[16:39:09] transpile started ...
[16:39:14] transpile finished in 5.29 s
[16:39:14] preprocess started ...
[16:39:14] preprocess finished in less than 1 ms
[16:39:14] webpack started ...
[16:39:14] copy finished in 5.53 s
[16:39:23] webpack finished in 8.90 s
[16:39:23] sass started ...
Without
from
option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or toundefined
to prevent this warning.[16:39:24] sass finished in 1.42 s
[16:39:24] postprocess started ...
[16:39:24] postprocess finished in 8 ms
[16:39:24] lint started ...
[16:39:24] build dev finished in 15.87 s
ANDROID_HOME=/Users/mw/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
:CordovaLib:preBuild
UP-TO-DATE
:CordovaLib:preDebugBuild
UP-TO-DATE
:CordovaLib:compileDebugAidl
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:checkDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources
UP-TO-DATE
:CordovaLib:javaPreCompileDebug
UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE
:CordovaLib:processDebugJavaRes
NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
NO-SOURCE
:app:compileDebugRenderscript
UP-TO-DATE
:app:checkDebugManifest
UP-TO-DATE
:app:generateDebugBuildConfig
UP-TO-DATE
:app:prepareLintJar
UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
UP-TO-DATE
:app:mergeDebugResources
[16:39:31] lint finished in 6.39 s
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders
UP-TO-DATE
:app:generateDebugAssets
UP-TO-DATE
:app:mergeDebugAssets
:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 14s
38 actionable tasks: 11 executed, 27 up-to-date
(node:92159) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/mw/Sites/BarCodeTest/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 14s
(node:92159) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Marks-Air-2:Sites mw$
Marks-Air-2:BarCodeTest mw$ ionic info
cli packages: (/Users/mw/.nvm/versions/node/v8.9.4/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
Marks-Air-2:BarCodeTest mw$ cordova plugin list
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-barcodescanner 7.0.2 "BarcodeScanner"
Marks-Air-2:BarCodeTest mw$
The text was updated successfully, but these errors were encountered: