Open telekosmos opened 8 years ago
@telekosmos have you tried running cordova clean
?
Damn, no way :-(. Previously, I had pretty fresh installs of everything. For what I got from searching, this is a pretty common error when you are developing native android apps, and the solution takes editing files which are mostly generated when you do a cordova build :-S.
One guy commented in the stackoverflow issue some about a support jar. May it be something related with that in the plugin?
Cheers!!!
@telekosmos there might be a duplicate of support.jar. Do you have same issue without Appodeal Plugin? Some plugins may put it with different name or version and you are getting with issue.
I bet is because of that, what can be real troublesome is the solution. After doing a find
:
$ find platforms/android/ -name "*.jar"|grep support
platforms/android//build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.4.0/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.4.0/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/mediarouter-v7/23.0.0/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/mediarouter-v7/23.0.0/jars/libs/internal_impl-23.0.0.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/support-v13/23.4.0/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/support-v13/23.4.0/jars/libs/internal_impl-23.4.0.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/support-v4/24.1.1/jars/classes.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/support-v4/24.1.1/jars/libs/internal_impl-24.1.1.jar
platforms/android//build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/jars/classes.jar
From what I read on internet, support-v4 should be the only one??? the problem is, the build is generated by cordova :-S. Hence my doubts and issues.
Thank you!!!
Hi there I still had no luck. May you tell where I can find the jar files belonging to the plugin? I'd like to take a look to their content to see if I can find something and find out a way to solve the issue. If I remove the plugin, everything is being built.
Thanks!!!
NazarKozak, the appodeal contruct 2 plugin works great and builds out completely, but only when its the only plugin using google services. When I added the https://github.com/cranberrygame/cordova-plugin-game plugin for leaderboard support on IOS and Google Play that's when the build fails with this error (android: Execution failed for task ':transformClassesWithJarMergingForArmv7Debug). If I remove either one it works, but together, Error. I tried added the multidex plugin to fix this issue but XDK doesn't allow gradle script in plugins. So I'm stuck. I need the plugin for the leaderboard and I want to use Appodeal but the 64000 method error for android is stopping me. My only option maybe to remove appodeal plugin and use something else but I don't want to. Any ideas
@telekosmos you can find jar files in libs folder
@Zoster63 you are using our official SC2 plugin or cranberry's?
yes, the official Appodeal plugin
@Zoster63 i will try to adapt it for you a bit and will let you know soon, think till tomorrow.
I get the error when I include https://github.com/cranberrygame/cordova-plugin-game Here are all the plugins I'm using in the project. intelxdk:plugin intelxdk:name="Device" intelxdk:value="cordova-plugin-device" intelxdk:version="1.1.2" intelxdk:checksum="2373ccea" intelxdk:type="file"/ intelxdk:plugin intelxdk:name="Device Orientation" intelxdk:value="cordova-plugin-device-orientation" intelxdk:version="1.0.3" intelxdk:checksum="bf366d3e" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="File" intelxdk:value="cordova-plugin-file" intelxdk:version="4.2.0" intelxdk:checksum="1fdd7f27" intelxdk:type="file"/ intelxdk:plugin intelxdk:name="CorHttpd" intelxdk:value="cordova-plugin-httpd" intelxdk:version="0.9.3" intelxdk:checksum="424d27dd" intelxdk:type="file"/ intelxdk:plugin intelxdk:name="InAppBrowser" intelxdk:value="cordova-plugin-inappbrowser" intelxdk:version="1.4.0" intelxdk:checksum="f88bc51f" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Splashscreen" intelxdk:value="cordova-plugin-splashscreen" intelxdk:version="3.2.2" intelxdk:checksum="47137083" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="StatusBar" intelxdk:value="cordova-plugin-statusbar" intelxdk:version="2.1.3" intelxdk:checksum="c0146fbc" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Cordova WKWebView Engine" intelxdk:value="cordova-plugin-wkwebview-engine" intelxdk:version="1.0.3" intelxdk:checksum="a34a592c" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Webview+" intelxdk:value="com.ludei.webview.plus" intelxdk:version="2.3.0" intelxdk:checksum="c1055cf9" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Notification" intelxdk:value="cordova-plugin-dialogs" intelxdk:version="1.2.1" intelxdk:checksum="2948bc11" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Cordova IAP plugin" intelxdk:value="cordova-plugin-payment-iap" intelxdk:version="2.0.52" intelxdk:checksum="938f56e8" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Cordova ReviewApp plugin" intelxdk:value="cordova-plugin-share-reviewapp" intelxdk:version="1.0.26" intelxdk:checksum="5515b95a" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="SocialSharing" intelxdk:value="cordova-plugin-x-socialsharing" intelxdk:version="5.0.10" intelxdk:checksum="4dbfeb59" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Google Play Services for Android" intelxdk:value="cordova-plugin-extras-google-play-services" intelxdk:version="1.0.5" intelxdk:checksum="1c4715fe" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Cordova Game plugin" intelxdk:value="cordova-plugin-game" intelxdk:version="1.0.120" intelxdk:checksum="56d83991" intelxdk:type="file"> intelxdk:param intelxdk:name="APP_ID" intelxdk:value="508727513078"/>/intelxdk:plugin intelxdk:plugin intelxdk:name="cordova-plugin-fullscreen" intelxdk:value="cordova-plugin-fullscreen" intelxdk:version="1.1.0" intelxdk:checksum="2a5ac68c" intelxdk:type="file"/> intelxdk:plugin intelxdk:name="Appodeal Plugin" intelxdk:value="com.appodeal.plugin" intelxdk:version="1.15.2" intelxdk:checksum="71b9379b" intelxdk:type="file"/>
great, thanks
Any updates
@Zoster63 Hi, sorry for so long delay. Please try this version of Appodeal plugin: https://github.com/appodeal/appodeal-cordova-maxdex-plugin The minimum possible number of methods in this version at the moment. But, to be honest, I still receive DexIndexOverflowException exception if try to build project with Appodeal plugin and cordova-plugin-game in intel XDK. From the other hand, all works fine with the same plugins in cocoon.io build system and in cordova cli. So, it looks like intel XDK appends some specific methods. But in any way, you can try the following version of the plugin: https://github.com/appodeal/appodeal-cordova-maxdex-plugin
And if it's not work in intel XDK, try to use another build system. There are no other solutions yet.
Hi there I'm getting this error with my cordova app in android platform with the following environment:
My list of plugins: cc.fovea.cordova.purchase 6.0.0 "Purchase" com.appodeal.plugin 1.15.2 "Appodeal Plugin" com.dooble.audiotoggle 1.0.0 "AudioToggle" com.rokolabs.rokomobi 0.0.1 "RokoMobi" com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions" cordova-fabric-plugin 1.0.7 "cordova-fabric-plugin" cordova-plugin-appavailability 0.4.2 "AppAvailability" cordova-plugin-audioroute 0.1.1 "Audio routing utilities" cordova-plugin-battery-status 1.1.0 "Battery" cordova-plugin-camera 2.2.0 "Camera" cordova-plugin-chrome-apps-power 1.0.4 "Chrome Apps Power API" cordova-plugin-compat 1.0.0 "Compat" cordova-plugin-console 1.0.1 "Console" cordova-plugin-contacts 1.1.0 "Contacts" cordova-plugin-crosswalk-webview 1.8.0 "Crosswalk WebView Engine" cordova-plugin-device 1.0.1 "Device" cordova-plugin-device-motion 1.1.1 "Device Motion" cordova-plugin-device-orientation 1.0.1 "Device Orientation" cordova-plugin-dialogs 1.2.1 "Notification" cordova-plugin-facebook4 1.1.0 "Facebook Connect" cordova-plugin-file 3.0.0 "File" cordova-plugin-file-transfer 1.3.0 "File Transfer" cordova-plugin-geolocation 1.0.1 "Geolocation" cordova-plugin-globalization 1.0.1 "Globalization" cordova-plugin-inappbrowser 1.4.0 "InAppBrowser" cordova-plugin-iosrtc 3.1.0 "iosrtc" cordova-plugin-media 1.0.1 "Media" cordova-plugin-media-capture 1.0.1 "Capture" cordova-plugin-network-information 1.2.0 "Network Information" cordova-plugin-splashscreen 3.2.0 "Splashscreen" cordova-plugin-statusbar 2.1.1 "StatusBar" cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID" cordova-plugin-vibration 1.2.0 "Vibration" cordova-plugin-whitelist 1.0.0 "Whitelist" cordova-plugin-x-socialsharing 5.0.9 "SocialSharing" cordova-plugin-x-toast 2.5.2 "Toast" ionic-plugin-keyboard 2.2.0 "Keyboard" org.awokenwell.proximity 0.2.1 "Proximity Sensor" phonegap-plugin-push 1.8.1 "PushPlugin"
The error I get on
cordova build android
is:The closest solution I've found is at http://stackoverflow.com/questions/32968171/android-apptransformclasseswithjarmergingfordebug-failed-zipexception-dupli, but I can't apply that solution as, with cordova environment, I don't have the
./gradlew clean
task and I don't know where/how to manually delete the duplicates .Any hint on this is very welcome. Couldnt find any close solution all over the internet :-S
Cheers!!!