While adding PooshWoosh Andoid SDk in Xamarin(PCL) project along with Xamarin.GooglePlayservice.GCM and Xamarin.GooglePlayServices.Location we get the following error : java.exe exited code 2 : /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 2. Output:  trouble writing output: Too many field references: 68342; max is 65536. You may try using --multi-dex option. References by package:      2 android.accounts     31 android.app      1 android.content     33 android.content.pm     10 android.content.res      3 android.database     52 android.graphics      2 android.media      1 android.media.browse      2 android.net     19 android.os      3 android.print      2 android.provider      8 android.runtime      1 android.support.annotation   3007 android.support.compat   3007 android.support.coreui   3007 android.support.coreutils   3007 android.support.design    103 android.support.design.internal    694 android.support.design.widget   3007 android.support.fragment   3160 android.support.graphics.drawable   3007 android.support.graphics.drawable.animated   3007 android.support.mediacompat   3186 android.support.transition   3007 android.support.v4     13 android.support.v4.accessibilityservice     17 android.support.v4.animation    889 android.support.v4.app    112 android.support.v4.content      1 android.support.v4.content.pm      1 android.support.v4.content.res      9 android.support.v4.graphics     41 android.support.v4.graphics.drawable      4 android.support.v4.hardware.display     12 android.support.v4.hardware.fingerprint     10 android.support.v4.internal.view    350 android.support.v4.media    322 android.support.v4.media.session     10 android.support.v4.net 19 android.support.v4.os     63 android.support.v4.print     10 android.support.v4.provider     55 android.support.v4.text      6 android.support.v4.text.util    118 android.support.v4.util    434 android.support.v4.view    138 android.support.v4.view.accessibility      8 android.support.v4.view.animation    495 android.support.v4.widget    413 android.support.v7.app   3007 android.support.v7.appcompat      8 android.support.v7.content.res     18 android.support.v7.graphics.drawable   3007 android.support.v7.recyclerview      1 android.support.v7.text      2 android.support.v7.transition    124 android.support.v7.util     77 android.support.v7.view    249 android.support.v7.view.menu   1401 android.support.v7.widget     89 android.support.v7.widget.helper      1 android.support.v7.widget.util      5 android.text      1 android.text.util      2 android.transition     12 android.util     18 android.view      8 android.view.accessibility      1 android.view.inputmethod     16 android.widget    130 com.bumptech.glide     54 com.bumptech.glide.disklrucache     61 com.bumptech.glide.gifdecoder     85 com.bumptech.glide.gifencoder      8 com.bumptech.glide.load     42 com.bumptech.glide.load.data     99 com.bumptech.glide.load.engine     45 com.bumptech.glide.load.engine.bitmap_recycle     39 com.bumptech.glide.load.engine.cache     11 com.bumptech.glide.load.engine.executor     32 com.bumptech.glide.load.engine.prefill     53 com.bumptech.glide.load.model      7 com.bumptech.glide.load.model.stream      5 com.bumptech.glide.load.resource     91 com.bumptech.glide.load.resource.bitmap      1 com.bumptech.glide.load.resource.bytes      3 com.bumptech.glide.load.resource.drawable      6 com.bumptech.glide.load.resource.file     63 com.bumptech.glide.load.resource.gif     22 com.bumptech.glide.load.resource.gifbitmap      9 com.bumptech.glide.load.resource.transcode     33 com.bumptech.glide.manager      2 com.bumptech.glide.module     12 com.bumptech.glide.provider     56 com.bumptech.glide.request     19 com.bumptech.glide.request.animation     37 com.bumptech.glide.request.target      6 com.bumptech.glide.signature     31 com.bumptech.glide.util   3001 com.google.android.gms     20 com.google.android.gms.actions     14 com.google.android.gms.ads.identifier     36 com.google.android.gms.auth.api.signin      6 com.google.android.gms.auth.api.signin.internal   3001 com.google.android.gms.base     94 com.google.android.gms.common     92 com.google.android.gms.common.api     41 com.google.android.gms.common.data     46 com.google.android.gms.common.images    164 com.google.android.gms.common.internal      1 com.google.android.gms.common.internal.safeparcel      4 com.google.android.gms.common.server     48 com.google.android.gms.common.stats     24 com.google.android.gms.common.util     27 com.google.android.gms.dynamic     18 com.google.android.gms.dynamite      2 com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags     16 com.google.android.gms.flags.impl   3105 com.google.android.gms.gcm   3047 com.google.android.gms.iid   1172 com.google.android.gms.internal      3 com.google.android.gms.location      5 com.google.android.gms.location.places      6 com.google.android.gms.security   3049 com.google.android.gms.tasks   3031 com.pushwoosh     15 com.pushwoosh.beacon      5 com.pushwoosh.fragment     77 com.pushwoosh.inapp      7 com.pushwoosh.internal      5 com.pushwoosh.internal.a     29 com.pushwoosh.internal.b     37 com.pushwoosh.internal.utils      2 com.pushwoosh.local     37 com.pushwoosh.location     60 com.pushwoosh.notification     43 com.pushwoosh.richpages      8 com.pushwoosh.sender      3 com.pushwoosh.thirdparty.a      7 com.pushwoosh.thirdparty.a.a     25 com.pushwoosh.thirdparty.radiusnetworks.bluetooth     51 com.pushwoosh.thirdparty.radiusnetworks.ibeacon      3 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.client     89 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.service      1 com.pushwoosh.thirdparty.radiusnetworks.ibeacon.simulator      6 java.lang      7 java.lang.annotation      2 java.nio      5 java.util      3 java.util.concurrent      2 md5048a04284979bff265231e98628579ce    120 md50cea7e3d85ecca2ca411ea26b0323c9c      4 md526b7ac14cffc1a788e82c7b73f3add08      2 md5299a304c8be8cf3eb65572c1cb1ae9a4      4 md531f8cc8d4d39b2fa02686ee0eb368905      6 md5a7fd36a6ea65a1f7cba96c1759a7684d      6 mono      1 mono.android      4 mono.android.accessibilityservice      2 mono.android.accounts     12 mono.android.animation     31 mono.android.app      2 mono.android.bluetooth     20 mono.android.content      2 mono.android.database.sqlite      6 mono.android.drm      6 mono.android.gesture      2 mono.android.graphics      2 mono.android.graphics.drawable      8 mono.android.hardware      2 mono.android.hardware.display      2 mono.android.hardware.input      2 mono.android.inputmethodservice      8 mono.android.location     60 mono.android.media     16 mono.android.media.audiofx      2 mono.android.media.effect      2 mono.android.media.midi      2 mono.android.media.session      2 mono.android.media.tv      2 mono.android.net      6 mono.android.net.nsd      2 mono.android.net.sip     18 mono.android.net.wifi.p2p      2 mono.android.nfc     10 mono.android.os     10 mono.android.preference      2 mono.android.renderscript      6 mono.android.runtime      6 mono.android.sax      2 mono.android.speech      4 mono.android.speech.tts     10 mono.android.support.design.widget      2 mono.android.support.transition      4 mono.android.support.v4.app      4 mono.android.support.v4.content      2 mono.android.support.v4.media.session      2 mono.android.support.v4.os     18 mono.android.support.v4.view      4 mono.android.support.v4.view.accessibility     12 mono.android.support.v4.widget      6 mono.android.support.v7.app     32 mono.android.support.v7.widget      2 mono.android.text      2 mono.android.transition     72 mono.android.view      4 mono.android.view.accessibility      2 mono.android.view.animation      2 mono.android.view.textservice      8 mono.android.webkit     72 mono.android.widget      2 mono.com.bumptech.glide.load.engine.cache      4 mono.com.bumptech.glide.manager      2 mono.com.bumptech.glide.request      2 mono.com.google.android.gms.common.api      2 mono.com.google.android.gms.common.images      2 mono.com.google.android.gms.security      6 mono.com.google.android.gms.tasks      4 mono.com.pushwoosh      2 mono.com.pushwoosh.fragment      4 mono.java.lang      2 mono.java.util      2 mono.javax.xml.transform      2 opentk      2 opentk.platform.android      2 opentk_1_0      2 opentk_1_0.platform.android      1 org.json   3001 xlsmedical.droid  (XLSMedical.Droid)

Then when we enable multi dex to fix the the above issue..we get error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 10. Output: Error: Can't read [/Library/Frameworks/Xamarin.Android.framework/Versions/7.1.0-13/lib/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar] (Can't process class [android/app/ActivityTracker.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))  (XLSMedical.Droid)

Kindly guide us.

asked 28 Apr, 14:18
Priya's gravatar image

Priya
111

Hi,

Do you have any third-party plugins that contain google-play-services and/or android-support libraries?

Which version of buildTools do you use?

Did you try switching to Java 1.7 already?

permanent link
answered 05 May, 09:05
Vitaly%20Romanychev's gravatar image

Vitaly Roman...
2213

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×431
×423
×22

question asked: 28 Apr, 14:18

question was seen: 570 times

last updated: 05 May, 09:05