Hi @Zephyr-Zhang ,
Both Android Native Plugin and Unity IAP have Google Play AIDL types.
So you can delete “Assets\Plugins\Android\libs\an_billing.aar” or “Assets\Plugins\UnityPurchasing\Bin\Android\GoogleAIDL.aar”.
Please do a full test after deleting the aar file.
These pages would also help.
Hi Guys,
When I import the unity IAP plugin from the services window I get the error in the title. When I delete that folder I can build just fine. Not sure what the issue is, if someone could guide me to a solution would be greatly appreciated.
I also looked for duplicate .jar files and didn’t find any duplicates.
Edit2: Deleting the android folder with GooglePlay.AAR allows me to build, but without it I cant make purchases. Mind you it has no duplicates.
Edit 3 just updating the error:
Er…
I have a game already serving interstitial ads using Google mobile ads plugin. Then, I decided to include Unity in-app purchase service (available in Unity 5.3) but I get an error during the build phase (see below). If I delete the Google Mobile Ads everything start to work.
CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/App…