Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Still Having Trouble Compiling Android AGK Player and Apps

Author
Message
JHA
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 19th Dec 2013 21:51 Edited at: 19th Dec 2013 21:53
I posted this in the Step by Step guide to creating a working .APK file but there isn't as much traffic there, so I am reposting it here.

------------------
Okay, I'm back at this now, but still getting errors.

It looks like I don't have the FacebookSDK.Jar file in my facebook folder.

I am using the latest version of AppGameKit from my Products Page:
v108.19 (File Updated: 12th Nov 2013)

I have attached a screenshot of Eclipse showing the errors.

I copied over the IDE folder from my AppGameKit installation and put it here: C:\Android\AGK\IDE

It does have a Facebook folder in the Apps folder, but there is no facebooksdk.jar file in the Bin folder.
C:\Android\AGK\IDE\apps\facebook\bin

I could just download that file and put it there, but will that solve the issue?

I looked through all of the comments and didn't see this exact issue, so sorry if this has been asked before.

Also, my app has nothing to do with Facebook, so why do I have to have that installed anyway?

EDIT: I uninstalled/reinstalled everything and I am now down to just 3 Errors.







After the reinstall, I still don't seem to have the facebooksdk.jar file. Where do I get this?

EDIT 2: AND WE'RE BACK TO THE 106 ERRORS THAT ARE POSTED IN THE ATTACHED IMAGE!!!!!! AAAAAARRRRRRGGGGHHHHH!!!!!!!


I wouldn't even have to do this, if the One Click Build option didn't break. I guess I needed to do this anyway, since I will eventually go over the 50MB limit that it imposes. Why is this so hard?!?!?!

Thank you!
JHA

Attachments

Login to view attachments
Markus
Valued Member
21
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Dec 2013 22:20 Edited at: 19th Dec 2013 22:22
i believe in AGK108B19\IDE\apps\facebook
is a project, you can compile and have this jar library.
in your screenshot i saw it is already in project treeview.

AGK 108 B19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
JHA
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 19th Dec 2013 22:28
Thanks for responding Markus.

The step by step instructions don't mention compiling the .jar file, so I don't know how to do that.

The listing in the treeview is part of the instructions, but the .jar file is still missing.

I tried to download just that file, but it didn't seem to work.
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 20th Dec 2013 04:44
You don't need to do anything with the JAR file.

Are you using the prebuilt interpreter or the one that needs compiling with cygwin? If you're not using the prebuilt then I'd highly suggest you do as I've found it is more stable.
I think the order of importing the projects is important.
If you have Eclipse set up and the proper Android SDKs all downloaded and such it should be a breeze. I say this after failing about 30 times...

So try again, import the Facebook SDK then import your project, then follow the instructions in the readme file in the prebuilt interpreter's folder. Other than that you will have to change the Google Cloud Messaging key (GCM) if you plan to use push. You'll need to change the base64 key if you want to have IAP. If you want a splash image then put a file named AGKSplash.png in your project's assets folder. Those are the only extras that aren't mentioned.

easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 20th Dec 2013 05:25
Quote: "I think the order of importing the projects is important."

Not so much the order of importing, but the order of building.
Use Project-> clean and build the FacebookSDK
then do the same with your project

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 20th Dec 2013 05:27
Interesting. I've never built them separately, but maybe what happens is that I import FB first so that when I clean/build all it does the FB one first. Good to know!

JHA
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 20th Dec 2013 16:45
At this point I am just trying to build the AppGameKit Player. I just followed the steps exactly, as laid out in the 'Step by Step guide to creating a working .APK file' in the Android AppGameKit Board.

It does call for cygwin, but it only needs you to modify and run a .bat file. That seemed to run fine and without errors, as far as I could tell.

Unfortunately, I'm not well versed in Eclipse either. I have a folder for the prebuilt interpreter, but I don't think the step by step instructions uses it.
C:\Android\AGK\IDE\apps\interpreter_android_prebuilt

Anything it has you do is with the folder labeled 'interpreter' and not the 'interpreter_android_prebuilt' folder.

I just tried building them separately, but to no avail.
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 20th Dec 2013 16:55
If you read the full thread you'll see that the resolving R is often an issue.
Delete both projects from Eclipse
Import Facebook
Copy the pre-built interpreter folder to a new folder so you leave the original intact, rename it to your app's name, open the folder and edit the .project file, changing the name in the file to your app.
Import the new folder into Eclipse
Follow the short list of instructions in the readme.txt file
Clean/build
Export

That's all there is to it. Don't bother with the non-prebuilt unless you have a specific reason to. It's not worth the aggravation and I truly think it is buggy.

JHA
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 20th Dec 2013 17:47
Well, I did something similar to what you said and I was able to build the AppGameKit Player!!!! Thank you SOOOO much!!!

Now to see if I can add my project to it. I'll edit this response with the results.

Thanks again!
JHA
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 20th Dec 2013 18:30
Good luck. Once you get it all set up it becomes really easy.

JHA
21
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Massachusetts, USA
Posted: 20th Dec 2013 23:06
I have been able to successfully build my app several times!!

Thanks to you both for helping out. It is definitely easier, after you get the AppGameKit Player and Facebook SDK working.

Thanks again!!
JHA

We're off and running now!
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 21st Dec 2013 00:37
Congrats!

Login to post a reply

Server time is: 2025-05-24 02:26:03
Your offset time is: 2025-05-24 02:26:03