CommandInvokationFailure: Failed to re-package resources. Random Error with Unity Ads

436 views
Skip to first unread message

Adnan Nazir

unread,
May 24, 2016, 10:54:20 AM5/24/16
to Google Mobile Ads SDK Developers
Hey, I am using unity 5.3.4 on Windows 10
I just now started getting this nasty bug which doesn't allow me to make an android build. Everything was working perfectly fine 1 day ago. 
I have updated my android SDK to latest and there isn't anything that I am missing.
I am stucking around it from past 3 hours and it's really getting difficult to resolve it.
For anyone interested in help I am using Google Admob SDK for Unity Latest version 3.0.3
Facebook SDK for Unity 7.5.0
Unity Ads and Unity IAP are also being used in my game and are active

Please help me 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 24, 2016, 11:24:08 AM5/24/16
to Google Mobile Ads SDK Developers
Hi Adnan,

I need more information about your setup. Also do share your complete crash logs with us. Also, I would suggest you to create a new project > import our Mobile Ads plugin > copy over our demo script and attach it as a component > right click on Assets >> PlayServicesResolver >> Google Play Services >> Resolve Client Jars (This is important as the plugin might not be able to locate your jar files). Then finally edit your Player Settings, make the build and let us know.

Thanks,
Veer Busani
Mobile Ads SDK Team

Adnan Nazir

unread,
May 24, 2016, 11:33:34 AM5/24/16
to Google Mobile Ads SDK Developers
Hi Veer !
Thanks for your rapid response. 
I know, I have resolved the Client JAR. I am sure I am not missing anything. Anyway I am still trying the steps you mentioned in the new project.
In my opinion the AAR files of Google Firebase are the main culprit for this command invokation failed error. As I haven't seen these file earlier.
I have read about Google Firebase but if I am just using admob then it still adds firebase related aar files?
Getting back to you with crash logs and new project setup soon.


Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 24, 2016, 4:49:28 PM5/24/16
to Google Mobile Ads SDK Developers
Hi Adnan,

The team is aware of this issue. For now, I would suggest you to select that firebase-common-9.0.0.aar file in the Assets > Plugins > Android folder and in the Unity Inspector, unselect Android as one of the the platform for the plugin (see the attached screenshot). 

Thanks,
Veer Busani
Mobile Ads SDK Team

Screen Shot 2016-05-24 at 4.43.39 PM.png

Adnan Nazir

unread,
May 25, 2016, 3:01:51 AM5/25/16
to Google Mobile Ads SDK Developers
Hi Veer !
I was getting CommandInvokationFailure: Failed to re-package resources Earlier.
Logs Are Here

After unchecking android checkbox from googleFireBase AAR.
Now I am getting 
CommandInvokationFailure: Unable to convert classes into dex format

Adnan Nazir

unread,
May 25, 2016, 3:19:41 AM5/25/16
to Google Mobile Ads SDK Developers
I am having following AAR files by including Google Mobile Ads SDK 
appcompat-v7-23.1.1
firebase-common-9.0.0
play-services-ads-9.0.0
play-services-ads-lite-9.0.0
play-services-base-9.0.0
play-services-basement-9.0.0
play-services-tasks-9.0.0
support-annotations-23.1.1
support-v4-23.1.1


Don't tell me that there is any UnityPurchasing, UnityAds Library that is bugging this. As When I exclude Google Mobile Ads SDK everything works just perfectly fine. 

Best Regards

Adnan Nazir

unread,
May 25, 2016, 3:28:04 AM5/25/16
to Google Mobile Ads SDK Developers
Ok So I managed to solve the issue the problem were I was having one AAR File support-v4-23.2.1 as Facebook Plugin and the other support-v4-23.1.1 was in Google Mobile Ads

Removing one will solve your issue

Thanks 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 25, 2016, 12:13:00 PM5/25/16
to Google Mobile Ads SDK Developers
Hi Adnan,

Thank you for sharing this in the forum. Do let us know if you need an

Thanks,
Veer Busani
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages