I've followed this old thread trying to make a working .APK file: http://forum.thegamecreators.com/?m=forum_view&t=203424&b=46
The thread is over 2 years old, and is a guide for AGKv1 and not for the new AGKv2. I've managed to make it to
BUILD AppGameKit PLAYER IN ECLIPSE at step 44.
When trying to import and build the AppGameKit Player in eclipse, I get all sort of errors. I've tried with and withouth the facebookSDK, downloaded facebook-sdk.java from another webside, and renamed it to "facebooksdk.java". I've tried cleaning the project, fixing the project through right-clicking the project and selection android. Either way I'm getting errors everywhere. Atm I'm having everything from 100-150 errors.
Here's a pastbin of all the errors I get (I did not include facebooksdk on this one, but it seems like the majority of error has nothing to do with it): http://pastebin.com/0qku4c6J
The majority of errors point to AGKHelper.java, and they refere to packages that can't be resolved i think. Here's the top of the AGKHelper.java file:
import [u]com.google.android.gms[/u].ads.*;
import [b]com.google.android.gms[/b].common.ConnectionResult;
import [b]com.google.android.gms[/b].common.GooglePlayServicesUtil;
import [b]com.google.android.gms[/b].common.api.GoogleApiClient;
import [b]com.google.android.gms[/b].location.LocationRequest;
import [u]com.google.android.gms[/u].location.LocationListener;
import [u]com.google.android.gms[/u].location.LocationServices;
(The text with
lines underneath, is the text with red errors lines marked in eclipse)
Is there a new guide for AGKv2?
The best solution would probably be to download a working AppGameKit 2 Player build from someone who has successfully managed to build it. Please, if you've managed to make it work on AGKv2, help me out!
I'm not familiar enough with eclipse nor java to solve the errors myself. All the other steps before step 44, has been successfully applied.
Dev: Windows 7 64-bit
Android: Sony Xperia Z2
Software: App Game Kit 2 (steam)
NOTE: I'm able to broadcast my app just fine to my phone without any problems. Creating an .apk file from "File -> Export" also works, but the file won't install on my phone. I then tried follow the guide linked at the top with no luck.
-Daniel