freshplanet / ANE-Google-Play-Game-Services

Enable user to log in with Google+ to upload high score and achievements
Apache License 2.0
57 stars 42 forks source link

Build Help #5

Closed overlawled closed 10 years ago

overlawled commented 10 years ago

The ANE works fine when I use the one included here however when I build my own (with or without modifications I've made in my fork) I get a crash.

Here is my build config.

name = AirGooglePlayGamesService

flex.sdk = path/to/ascsdk

bin.ext = .bat

ios.sdkversion = iphoneos

android.sdk = path/to/androidsdk/sdk/platforms/android-16

gplayservices.libs = path/to/androidsdk/sdk/extras/google/google_play_services_froyo/libproject/google-play-services_lib

Would very much appreciate any help. I do notice that when I build it my .ane file is ~40kb larger than the one included here.

I should also mention that with my build (even of the master branch) I get this.

[Fault] exception, information=Error: ERROR - Extension context is null. Please check if extension.xml is setup correctly.

overlawled commented 10 years ago

Found the solution. I needed to change the build.xml javac tag.

kubusabadi commented 10 years ago

I have a problem, maybe you could help me... I have imported android part to eclipse ide and I built jar without modifications, I'm trying to build ane manualy without ant. I have my Android-ARM folder, I copied res from google services lib folder from froyo to it, I copied classes for google lib jar to my android lib jar and I try to run adt -package -target ane AirGooglePlayGamesService.ane extension.xml -swc AirGooglePlayGamesService.swc -platform Android-ARM -C android . -platform default -C default . Everything seems to be ok, but when I run my app I get "The Google Play services resources were not found... " message in log cat.... I have tried different combinations with this res folder and nothing helps. Could you help me?

overlawled commented 10 years ago

I actually get this message as well, but it causes no problems when accessing Google Play.

kubusabadi commented 10 years ago

Thanks for replying to me! Sometimes I get warning: 02-27 08:56:40.750: W/WindowManager(170): Failed looking up window 02-27 08:56:40.750: W/WindowManager(170): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4168f730 does not exist 02-27 08:56:40.750: W/WindowManager(170): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7187) 02-27 08:56:40.750: W/WindowManager(170): at com.android.server.wm.WindowManagerService.addWindow(WindowManagerService.java:2020) 02-27 08:56:40.750: W/WindowManager(170): at com.android.server.wm.Session.add(Session.java:139) 02-27 08:56:40.750: W/WindowManager(170): at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:70) 02-27 08:56:40.750: W/WindowManager(170): at com.android.server.wm.Session.onTransact(Session.java:111) 02-27 08:56:40.750: W/WindowManager(170): at android.os.Binder.execTransact(Binder.java:338) 02-27 08:56:40.750: W/WindowManager(170): at dalvik.system.NativeStart.run(Native Method) 02-27 08:56:40.750: E/BasePopup(967): Cannot show the popup as the given window token is not valid. Either the given view is not attached to a window or you tried to connect the GoogleApiClient in the same lifecycle step as the creation of the GoogleApiClient. See GoogleApiClient.Builder.create() and GoogleApiClient.connect() for more information. 02-27 08:56:40.750: W/WindowManager(170): Attempted to add window with token that is not a window: android.os.BinderProxy@4168f730. Aborting. I don't know... Is it a problem? Sometimes green window appears and indicate that google play service is running, sometimes not. Is it correct behaviour?