Jensck,
First, thanks for the help. I have set the sdk.dir property exactly the same (cut and paste) as in the tutoral examples. I’ll explain what I’m doing, step by step…I’m sure I’m doing something wrong:
Download the master.zip from:
https://github.com/spark/spark-sdk-android/archive/master.zip
That gives me the folder “spark-sdk-android-master”
I put that folder under c:\android, then from the “Welcome to Android Studio” front page, I “open an existing project”, navigate to “example_app”, and it gives me:
Gradle settings for this project are not configured yet.
Would you like the project to use the Gradle wrapper?
(The wrapper will automatically download the latest supported Gradle version).
Click ‘OK’ to use the Gradle wrapper, or ‘Cancel’ to manually set the path of a local Gradle distribution.
I click ‘OK’, and right off the bat it gives me:
Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Then I make the project, and it gives me:
Error:FAILURE: Build failed with an exception.
- What went wrong:
Task ‘generateDebugSources’ not found in root project ‘spark-sdk-android-master’. - Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I have the sdk.dir set to:
sdk.dir=C:\Users\Joe\AppData\Local\Android\sdk
Which is exactly the same as my tutorial apps, and everything works fine with those. Can you tell what I’m doing wrong?