question

Pompi avatar image
Pompi asked

Unable to "link" game circle with my Android project in eclipse.

I downloaded the latest Apps-SDK from Amazon and followed the instruction on importing GameCircleSDK into my workspace using this document: https://developer.amazon.com/public/apis/engage/gamecircle/docs/initialize-android I was able to import GameCircleSDK (I even told eclipse to copy the project into my workspace) I set a dependency reference, I added the GameCircleSDK as a library in my project. Now I have added the GameCircle initialization code as shown in the document above. Eclipse complains it cannot find AmazonGamesClient or any other GameCircle class. When I try to write the import for this class I can see that it finds com.amazon.ags but it cannot find com.amazon.ags.api The thing is, I can see com.amazon.ags.api(and all the gamecircle classes) inside gamecirclesdk.jar under AndroidPrivateLibraries of GameCircleSDK project, but under gen I only see the com.amazon.ags and nothing else. Maybe that is the issue, it needs to be turned into pbulic? Not sure. How do I make the GameCircleSDK classes available in my Android Java project?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pompi avatar image
Pompi answered
I "managed" by using the classic Eclipse way of adding a library described here: http://stackoverflow.com/questions/9283040/eclipse-android-project-how-to-reference-library-within-workspace I added the 3 jars in GameCircleSDK and also copied all the res and assets into my project. That way it "worked". I wasn't able to make it work like it was described in the Amazon documentation.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amnah Sajid avatar image
Amnah Sajid answered
i am stuck in the same problem. you found the solution? kindly share with me
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pompi avatar image
Pompi answered
Well as I mentioned, Follow the link and instead adding the GameCircleSDK as a dependency just add the 3 jar files from within it. The link explains how to add jar files. The rest is just copying the assets and resource, But I am not entirely sure this works as I am having issue. I will tell you more once I get this working. Currenctly I get the log in message but it takes me to a web browser log in which means it didn't find the package perhaps...
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pompi avatar image
Pompi answered
Hi I have solved the linking issue I think. I am still unable to log in though via my app... The issue with the missing classes is due to having appcompat_v7 also linked in your project. Once I removed it it seemed to find the classes. Another thing is that I set the Java compiler in both my project and the GameCircleSDK into 1.6(This is because the FireTV SDK only works with 1.6 and not 1.7) In order to do that you need to go to properties->Java Compiler and there you enable project specific setting and choose 1.6. It might work with 1.7 but you might want them to have the same version as they might be different for your app and GameCircleSDK. My issue now is that I don't seem to be able to log in to GameCircle while running the app, but I no longer get the unresovled package while compiling. Hope this helps.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.