Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google-play-services.jar conflict #7

Open
ericguo opened this issue May 4, 2014 · 8 comments
Open

google-play-services.jar conflict #7

ericguo opened this issue May 4, 2014 · 8 comments

Comments

@ericguo
Copy link

ericguo commented May 4, 2014

Hi there, the google-play-services.jar in the extension conflicts with latest one (version code: 4323000) in the Admob extension of my project. Is it possible to update it? or how can I use these both? Thanks.

@kevinresol
Copy link

I got the same issue

@shoebox
Copy link
Member

shoebox commented May 7, 2014

Hi, you could try to update the jar, it should work if there is no API changes.

If it work, please do a pull request with the updated jar.

Thanks !

@kevinresol
Copy link

It doesn't seem to work. I replaced the updated jar and changed the version number. I got the following errors:

-compile:
    [javac] Compiling 11 source files to Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\bin\classes
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\BaseGameActivity.java:23: cannot find symbol
    [javac] symbol  : class AppStateClient
    [javac] location: package com.google.android.gms.appstate
    [javac] import com.google.android.gms.appstate.AppStateClient;
    [javac]                                       ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\BaseGameActivity.java:25: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: package com.google.android.gms.games
    [javac] import com.google.android.gms.games.GamesClient;
    [javac]                                    ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:40: cannot find symbol
    [javac] symbol  : class AppStateClient
    [javac] location: package com.google.android.gms.appstate
    [javac] import com.google.android.gms.appstate.AppStateClient;
    [javac]                                       ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:46: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: package com.google.android.gms.games
    [javac] import com.google.android.gms.games.GamesClient;
    [javac]                                    ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\BaseGameActivity.java:127: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: class com.google.example.games.basegameutils.BaseGameActivity
    [javac]     protected GamesClient getGamesClient() {
    [javac]               ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\BaseGameActivity.java:131: cannot find symbol
    [javac] symbol  : class AppStateClient
    [javac] location: class com.google.example.games.basegameutils.BaseGameActivity
    [javac]     protected AppStateClient getAppStateClient() {
    [javac]               ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:106: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: class com.google.example.games.basegameutils.GameHelper
    [javac]     GamesClient mGamesClient = null;
    [javac]     ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:108: cannot find symbol
    [javac] symbol  : class AppStateClient
    [javac] location: class com.google.example.games.basegameutils.GameHelper
    [javac]     AppStateClient mAppStateClient = null;
    [javac]     ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:304: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: class com.google.example.games.basegameutils.GameHelper
    [javac]     public GamesClient getGamesClient() {
    [javac]            ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:315: cannot find symbol
    [javac] symbol  : class AppStateClient
    [javac] location: class com.google.example.games.basegameutils.GameHelper
    [javac]     public AppStateClient getAppStateClient() {
    [javac]            ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:7: cannot find symbol
    [javac] symbol  : class OnAchievementUpdatedListener
    [javac] location: package com.google.android.gms.games.achievement
    [javac] import com.google.android.gms.games.achievement.OnAchievementUpdatedListener;
    [javac]                                                ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:10: cannot find symbol
    [javac] symbol  : class OnLeaderboardMetadataLoadedListener
    [javac] location: package com.google.android.gms.games.leaderboard
    [javac] import com.google.android.gms.games.leaderboard.OnLeaderboardMetadataLoadedListener;
    [javac]                                                ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:11: cannot find symbol
    [javac] symbol  : class OnScoreSubmittedListener
    [javac] location: package com.google.android.gms.games.leaderboard
    [javac] import com.google.android.gms.games.leaderboard.OnScoreSubmittedListener;
    [javac]                                                ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:12: cannot find symbol
    [javac] symbol  : class SubmitScoreResult
    [javac] location: package com.google.android.gms.games.leaderboard
    [javac] import com.google.android.gms.games.leaderboard.SubmitScoreResult;
    [javac]                                                ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:27: cannot find symbol
    [javac] symbol: class OnAchievementUpdatedListener
    [javac] public class PlayHelper extends GameHelper implements   OnAchievementUpdatedListener ,
    [javac]                                                         ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:28: cannot find symbol
    [javac] symbol: class OnLeaderboardMetadataLoadedListener
    [javac]                                             OnLeaderboardMetadataLoadedListener ,
    [javac]                                             ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:29: cannot find symbol
    [javac] symbol: class OnScoreSubmittedListener
    [javac]                                             OnScoreSubmittedListener{
    [javac]                                             ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\PlayHelper.java:129: cannot find symbol
    [javac] symbol  : class SubmitScoreResult
    [javac] location: class fr.hyperfiction.playservices.PlayHelper
    [javac]         public void onScoreSubmitted(int statusCode, SubmitScoreResult result){
    [javac]                                                      ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Achievements.java:4: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: package com.google.android.gms.games
    [javac] import com.google.android.gms.games.GamesClient;
    [javac]                                    ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Achievements.java:7: cannot find symbol
    [javac] symbol  : class OnAchievementsLoadedListener
    [javac] location: package com.google.android.gms.games.achievement
    [javac] import com.google.android.gms.games.achievement.OnAchievementsLoadedListener;
    [javac]                                                ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Achievements.java:136: cannot find symbol
    [javac] symbol  : class OnAchievementsLoadedListener
    [javac] location: class fr.hyperfiction.playservices.Achievements
    [javac]         private static OnAchievementsLoadedListener listener = new OnAchievementsLoadedListener( ){
    [javac]                        ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:9: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: package com.google.android.gms.games
    [javac] import com.google.android.gms.games.GamesClient;
    [javac]                                    ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:15: cannot find symbol
    [javac] symbol  : class RealTimeReliableMessageSentListener
    [javac] location: package com.google.android.gms.games.multiplayer.realtime
    [javac] import com.google.android.gms.games.multiplayer.realtime.RealTimeReliableMessageSentListener;
    [javac]                                                         ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:38: cannot find symbol
    [javac] symbol: class RealTimeReliableMessageSentListener
    [javac]                         RealTimeReliableMessageSentListener,
    [javac]                         ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:802: cannot find symbol
    [javac] symbol  : class GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]         static private GamesClient getGamesClient( ){
    [javac]                        ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:271: package GamesClient does not exist
    [javac]             mGamesClient = new GamesClient.Builder(getContext(), this, this)
    [javac]                                           ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:286: package AppStateClient does not exist
    [javac]             mAppStateClient = new AppStateClient.Builder(getContext(), this, this)
    [javac]                                                 ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\com\google\example\games\basegameutils\GameHelper.java:818: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class com.google.example.games.basegameutils.GameHelper
    [javac]             Invitation inv = connectionHint.getParcelable(GamesClient.EXTRA_INVITATION);
    [javac]                                                           ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Achievements.java:136: cannot find symbol
    [javac] symbol  : class OnAchievementsLoadedListener
    [javac] location: class fr.hyperfiction.playservices.Achievements
    [javac]         private static OnAchievementsLoadedListener listener = new OnAchievementsLoadedListener( ){
    [javac]                                                                    ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:36: fr.hyperfiction.playservices.Multiplayers is not abstract and does not override abstract method onInvitationRemoved(java.lang.String) in com.google.android.gms.games.multiplayer.OnInvitationReceivedListener
    [javac] class Multiplayers implements RealTimeMessageReceivedListener,
    [javac] ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:208: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]                 trace("extras ::: "+datas.getStringArrayListExtra(GamesClient.EXTRA_PLAYERS) );
    [javac]                                                                   ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:209: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]                 Invitation invitation = extras.getParcelable( GamesClient.EXTRA_INVITATION );
    [javac]                                                               ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:239: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]                 final ArrayList<String> invitees = datas.getStringArrayListExtra(GamesClient.EXTRA_PLAYERS);
    [javac]                                                                                  ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:255: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]                 int minAutoMatchPlayers = datas.getIntExtra( GamesClient.EXTRA_MIN_AUTOMATCH_PLAYERS , 0 );
    [javac]                                                              ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:256: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]                 int maxAutoMatchPlayers = datas.getIntExtra( GamesClient.EXTRA_MAX_AUTOMATCH_PLAYERS , 0 );
    [javac]                                                              ^
    [javac] Z:\Codes\FlashDevelop\ColorzMobile\export\android\bin\deps\hyp-play-services\src\fr\hyperfiction\playservices\Multiplayers.java:365: cannot find symbol
    [javac] symbol  : variable GamesClient
    [javac] location: class fr.hyperfiction.playservices.Multiplayers
    [javac]             trace("max length ::: "+ba.length+" / "+GamesClient.MAX_RELIABLE_MESSAGE_LEN );
    [javac]                                                     ^
    [javac] 36 errors

@kevinresol
Copy link

http://stackoverflow.com/questions/22825940/com-google-android-gms-games-gamesclient-cannot-be-resolved

Since the Google Play services update to version 4.3, GamesClient is no longer available. You should switch to GoogleApiClient instead.

@shoebox
Copy link
Member

shoebox commented May 7, 2014

Please check than your jar is up to date.

I've done a quick search, it seems than some changes are required on the AdMob side:
https://developers.google.com/mobile-ads-sdk/docs/admob/play-migration
https://code.google.com/p/android/issues/detail?id=63007

@kevinresol
Copy link

My jar is most updated (downloaded from Android SDK Manager) at version 4323000.
I believe the problem is that GameClient is depreciated

The previous Games client is deprecated as of February 7th, 2014. Existing and new developers are strongly encouraged to use GoogleApiClient instead of the deprecated GamesClient.:

ericguo referenced this issue in grapefrukt/HypPlay_services May 8, 2014
@kevinresol
Copy link

Did a very quick and dirty (and very limited) fix for this
kevinresol@2962478

Well, at least the Leaderboard works...

@paala
Copy link

paala commented May 30, 2014

Hi kevinresol,

What openfl version are you using in your branch?
For me with openfl1.2 the game crashes at touch.
05-30 15:05:52.944: E/AndroidRuntime(10449): at fr.hyperfiction.playservices.PlayServices$3.run(PlayServices.java:213)
aka :HypPlayServices.playHelper.beginUserInitiatedSignIn( );

maybe i modified wrong this line:
setenv name="GooglePlayID" value="REPLACE_ME_WITH_YOUR_GOOGLEID" /
what is my google id? 893450891887? Do I need to modify other thing in the demo to work?

The original version from shoebox doesn't even compile

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants