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

error google_play #10

Closed
irostam opened this issue Jun 15, 2014 · 33 comments
Closed

error google_play #10

irostam opened this issue Jun 15, 2014 · 33 comments

Comments

@irostam
Copy link

irostam commented Jun 15, 2014

Why not complete this game? Packages Where do I download
I am using intellij

@irostam
Copy link
Author

irostam commented Jun 15, 2014

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.games.GamesClient;
import com.google.example.games.basegameutils.BaseGameActivity;

@cubei
Copy link
Owner

cubei commented Jun 15, 2014

Did you read the instruction file like it says in the read-me file ?
Please read that before asking questions that I already answered pre-emptively.

For your future questions:
intelliJ doesn't really support library projects (at least it seems so to me), so instead of adding the google play services library PROJECT as an dependency for BaseGameUtil, add the google-play-services.jar file in the google play services project. This means you can't use resource from the google play service project, so in the manifest of flappyCow you get the error that google_play_services_version was not found, it has the value 4132500 (in the version i use currently), that you need to put there by hand.
Also the BaseGameUtil and the FlappyCow project have both a android-support-v4.jar in the lib folder, you should delete one and reference the both projects to the same file.

I guess it's better/easier to use eclipse.

@irostam irostam closed this as completed Jun 18, 2014
@irostam
Copy link
Author

irostam commented Jun 18, 2014

Google play used for advertising?
How can I delete the program(google play ad)?

@irostam irostam reopened this Jun 18, 2014
@cubei
Copy link
Owner

cubei commented Jun 18, 2014

To remove the ads, just look in the Game.java source file and search for "ads", I put comments what lines you should delete. Also check the manifest file.

@irostam
Copy link
Author

irostam commented Jun 18, 2014

How can import in Eclipse?
I not

@irostam
Copy link
Author

irostam commented Jun 18, 2014

Cannot import into a workspace with no open projects. Please create a project before importing.

@irostam
Copy link
Author

irostam commented Jun 18, 2014

I unfortunately did not succeed
No Google source code and promo thing is possible bridge problem comes up?
Or you can email me?
mehrkish@ymail.com

@cubei
Copy link
Owner

cubei commented Jun 18, 2014

I have no idea what you are talking about.
The instruction file should be pretty precise.
You do not need to create a project before importing this, because this is a project.

@irostam
Copy link
Author

irostam commented Jun 19, 2014

According to the structure go, but still I'm having a error
All Java source code's error, so manifest
What can I do?
Please send me the source code without a problem and Google ads Play

@RepeatAfterMe
Copy link

Hello Sir... FYI, please follow this link .. your source code has been sale
on market.. http://www.sellmysourcecode.com/item/rocket-monkey-trilogy/428/
Pada 19 Jun 2014 00:10, "Quchen" notifications@github.com menulis:

To remove the ads, just look in the Game.java source file and search for
"ads", I put comments what lines you should delete. Also check the manifest
file.


Reply to this email directly or view it on GitHub
#10 (comment).

@cubei
Copy link
Owner

cubei commented Jun 19, 2014

@hermawan76 Thank you for the information. That's interesting, I can't see my copyright notice anywhere, that's clearly against the license.

@cubei
Copy link
Owner

cubei commented Jun 19, 2014

@rostam-behroozoan I haven't written it before, so maybe it's your problem: Have you installed the eclipse Android Plugin ? http://developer.android.com/sdk/installing/installing-adt.html

@irostam
Copy link
Author

irostam commented Jun 20, 2014

Yes, I did download the Android Eclipse site
http://developer.android.com/

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

You downloaded a site ? Wow, what do you mean by that ???

Which operating system do you use?

Please tell me if you have the following prerequisites:

  1. You have installed the Java SDK (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
  2. You have installed the Android SDK (http://developer.android.com/tools/sdk/eclipse-adt.html) ("Use an existing IDE")
  3. You have opened the SDK Manager (you installed this in step 2) and downloaded and installed the newest Android API.
  4. You have downloaded (/installed) Eclipse (http://download.eclipse.org/eclipse/downloads/drops4/R-4.3.2-201402211700/)
  5. You added the ADT Plugin to Eclipse (http://developer.android.com/tools/sdk/eclipse-adt.html)

@irostam
Copy link
Author

irostam commented Jun 20, 2014

Yes, I understand. I've done it all before
I've updated the file and what changes have you done?
We have two folder in which the file unzip this ok? BaseGameUtil.zip,GooglePlayServices.zip
lib_projects or libs?

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

You take both zips from the lib_projects folder and unzip them in your workspace.
Your workspace folder should have 3 folders/projects: BaseGameUtil, FlappyCow, google-play-services_lib

@cubei cubei closed this as completed Jun 20, 2014
@cubei cubei reopened this Jun 20, 2014
@cubei
Copy link
Owner

cubei commented Jun 20, 2014

You still didn't tell me which operating system you are using.

@irostam
Copy link
Author

irostam commented Jun 20, 2014

windows 8.1

@irostam
Copy link
Author

irostam commented Jun 20, 2014

You can not all the codes related to Google play (ads) to remove or replace this file you send for me??
Thank you

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

No, because Google Play is needed for the leaderboard and achievements and is in a lot of files. Removing it will need huge changes to the code.
And the ads are just a few lines that you can be removed with no problems.
But you said "All Java source code's error, so manifest" and that has nothing to do with the ads, IF you followed the instructions. In case you are not exaggerating and all the source code has errors for real, you did not install the SDKs correctly.

@irostam
Copy link
Author

irostam commented Jun 20, 2014

Is this true??
screenshot 11

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

I don't see any errors at all. So what's you problem again?

@irostam
Copy link
Author

irostam commented Jun 20, 2014

Thank you, no problem
How can I just run it run with my device
I do not want to run with avd

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

Take your Android device, open Settings, scroll down, click on developer settings, check USB-Debugging

On newer Android versions you may not see this menu point by default, to activate developer settings do the following:
Take your Android device, open Settings, scroll down to the last point and click on about phone/tablet, scroll down until you find the build-number click on it multiple time (~5x) until you get the notification that you are a developer now.

connect your device via an USB cable to your computer. Your Android device should show a notification about USB-Debugging and your computer should install the drivers needed.

In eclipse, right click on the project -> run as -> android application -> wait a little -> choose your device

Also: You could share how you solved your first problems, in case someone else has this errors, it would probably help him/her a lot.

@irostam
Copy link
Author

irostam commented Jun 20, 2014

I thank you very much
I run into the device game, not ads
But there's a code, you need to remove a portion of the advertising?
Again put these games to see whether there is a source where multiple games can be downloaded and development?

@cubei
Copy link
Owner

cubei commented Jun 20, 2014

Sorry, but I don't understand your last two sentences. Could you try to restructure them?

@irostam
Copy link
Author

irostam commented Jun 22, 2014

It's clear the lib_projects?
Ever wonder every time I change the package name??

@cubei
Copy link
Owner

cubei commented Jun 22, 2014

Don't take this personally, but your english is not understandable.
Or it's just me, but I can't help you, if I can't understand you.

@irostam
Copy link
Author

irostam commented Jul 1, 2014

I deleted my Google bridge plan
But this message was displayed(thoest)
You're not logged in
How do I remove it?

@cubei
Copy link
Owner

cubei commented Jul 1, 2014

I guess you mean the "toast" notification.
Usually if someone asked a question like this, he will be directed to use google to search for a solution. In this case you don't need google, because eclipse has an build in search functionality.
So click on "Search" in the menu bar of eclipse, select "Search.." type in "You're not logged in", press Enter and eclipse will show you all occurrences. Now you see where it comes from and it should be easy for you to figure out how to remove it.
Search before your ask. ;)

@irostam
Copy link
Author

irostam commented Jul 1, 2014

Thanks for the tips
These two packages are described in sight?
BaseGameUtil,google-play-services_lib
One does not need to be removed?

@cubei
Copy link
Owner

cubei commented Jul 1, 2014

BaseGameUtil needs google-play-service_lib and flappyCow need BaseGameUtil
So no, you can't remove them.

@cubei
Copy link
Owner

cubei commented Nov 2, 2014

I guess we're done here

@cubei cubei closed this as completed Nov 2, 2014
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

3 participants