Having trouble with various Android libraries

I’ve put off building with Enterprise for a while, as I was able to do what I needed using the simulator.

However now I want to use Enterprise, and I’m having some trouble. I removed all of the files in my projects libs folder, so that I could make sure they were all using up to date version instead.

First of all, I’ve found that there are a few different plugins which have a file called “classes.jar”. Obviously if I already have one classes.jar file in my libs folder and then add another, the first one will be overwritten. Is there a way to combine them into one? If not, how do you use 2 plugins which both have a file with the same name?

Secondly, I’m having trouble getting a few things to work.

When building I’m getting this error, but can only see one file which contains this function unless I’m overlooking it (CoronaProvider.gameNetwork.google.jar):

[dx] UNEXPECTED TOP-LEVEL EXCEPTION:

       [dx] com.android.dx.util.DexException: Multiple dex files define LCoronaProvider/gameNetwork/google/GameHelper$1;

The app still builds, even though it has a failed message.

Then when I try and call a gamenetwork function, I get this:

WARNING: The ‘gameNetwork’ library is not available on this platform.

08-15 18:53:57.238: V/Corona(18185): > Class.forName: CoronaProvider.gameNetwork.google.LuaLoader

08-15 18:53:57.238: I/dalvikvm(18185): Could not find method com.google.android.gms.games.GamesClient.loadAchievements, referenced from method CoronaProvider.gameNetwork.google.LuaLoader.request

I’m getting a bit confused about which files should and shouldn’t be included. It would seem that I’ve made a mistake somewhere, but I’m not sure where.

So it turned out the reason for the clash was because I’d previously had the admob plugin in my project, and then deleted it. However it was still in the bin/dexedLibs folder because I hadn’t cleaned out the project.  

Now it seems to be ok. One strange thing that is still happening though is that I get this message a lot:

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

I get it when I call Vungle, Chartboost or AmazonAds, but the plugins still seem to work as they should. It seems odd to me that they would work if this plugin can’t be found, even the Game Network calls still work.

So it turned out the reason for the clash was because I’d previously had the admob plugin in my project, and then deleted it. However it was still in the bin/dexedLibs folder because I hadn’t cleaned out the project.  

Now it seems to be ok. One strange thing that is still happening though is that I get this message a lot:

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

I get it when I call Vungle, Chartboost or AmazonAds, but the plugins still seem to work as they should. It seems odd to me that they would work if this plugin can’t be found, even the Game Network calls still work.

Hi Alan,

I’m new to enterprise and am trying to build my app with the admob and vungle plugins. I have put their jar files into the android/lib folder and compiled but when I run the app I get the following:

java.lang.NoClassDefFoundError:

com.vungle.publisher.location.GooglePlayServicesDetailedLocationProvider$a

Would you be able to explain how you successfully added these plugins to your android app? Do I need the android admob sdk and vungle sdk added into my project somehow?

Thanks in advance!

Hi Alan,

I’m new to enterprise and am trying to build my app with the admob and vungle plugins. I have put their jar files into the android/lib folder and compiled but when I run the app I get the following:

java.lang.NoClassDefFoundError:

com.vungle.publisher.location.GooglePlayServicesDetailedLocationProvider$a

Would you be able to explain how you successfully added these plugins to your android app? Do I need the android admob sdk and vungle sdk added into my project somehow?

Thanks in advance!