Comments (11)
@mtschoen sorry for the late response. I think that you are missing GPS in your android home. Have you checked that it's installed?
from martianrun.
Hm. I just tried again on another computer, made sure to get GPS in the SDK manager, and tried to update the version in build.gradle to the latest (7.0.0) but gradle seems to be looking in the wrong location. Maybe it's looking for the place where Android Studio puts the SDK?
I tried setting ANDROID_HOME, as well, but to no avail.
from martianrun.
are you compiling the project from Android Studio or the command line? If it's from the command line, make sure you have your ANDROID_HOME set up either as an environment variable or in the project's local.properties. If you are running it from Android Studio, make sure you are working with the Gradle wrapper included in the project and not your local Gradle installation, maybe there's something misconfigured
from martianrun.
Actually I'm using Eclipse...
from martianrun.
Oh... I haven't worked with Gradle + Eclipse, but have you tried compiling from the command line? I just cloned it in a different computer and running "./gradlew assemble" worked fine.
Look at #1, not sure if it's related.
from martianrun.
Hm. Gradlew assemble has the same result. Also I'm on Windows. I can try Android Studio, but I've never used it or IntelliJ before, so I'd like to stay with Eclipse.
Anyway I'm able to get away with just building the desktop version and removing the android build target. Do you think you could give it a shot in Eclipse? What version of GPS should I be pointing to?
from martianrun.
sure, I'll try Eclipse and will let you know. Any GPS version with ads support and basic google game services will do, 4.4.52 works fine.
One more thing, check that google play services is indeed in your Android SDK. All installed versions should be in %ANDROID_HOME%/extras/google/m2repository/com/google/android/gms/play-services/
from martianrun.
@mtschoen I got it to build in Eclipse, sorry :-/
from martianrun.
Hm, so it must be a windows thing then (i assume you're on osx or linux?)
My android sdk doesn't follow the same directory structure, which is odd. I wonder if this is just a problem with gradle or libgdx in general. 8 can find gps, but its in sdk/extras/google, no m2repo folder...
Thanks for your help, btw. I appreciate your time :)
from martianrun.
I'm on osx, yes. Hope you get it to work and let me know if you have any other questions :)
from martianrun.
Thanks. I might try installing android studio and getting the sdk installed where gradle expects it, but I'm not hopeful. That said, yours was the first open source project i could actually get to compile and run at all, so hooray!
from martianrun.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martianrun.