- Home /
Stuck with Importing Google Packages
After completing most aspects of the project I'm working on(incl. Openfeint, Flurry & In-App Purchasing) I've been looking at the Google APK expansion files but I'm having problems importing the Google Market APK Expansion package into the Unity project.
I've followed the steps on the Android dev guide and created two eclipse projects from the source code supplied for Google Market Apk Expansion package and Google Market Licensing package.
However, since I don't have an eclipse project for my Unity project I'm unsure how to add them as a library. So what I tried was exporting the src into a .jar file and adding that to my Assets\Plugins\Android\libs folder. Now the strange thing is this seems to have partly worked, which is what confuses me. Under the Google Market Apk Expansion package there are src files under com.google.android.vending.expansion.downloader and under com.google.android.vending.expansion.downloader.impl.
In my java files I'm creating for Unity I can successfully import files from com.google.android.vending.expansion.downloader but not from com.google.android.vending.expansion.downloader.impl. That's what I don't understand as they should both be under the same .jar file. If it can find one why can't it find the other?
Oh I should say I also tried to add the libraries to default.properties for Ant to build them (that's how I build my Unity Android files), but that didn't work.
I'm a bit stumped at this point, help would be great!
Not sure if I explained myself very well..
Answer by HazeTI · Mar 22, 2012 at 11:55 AM
Argh! I had "export class files with compile warnings" **un**checked. Which means certain classes were not exported because the google libraries come with warnings!