Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Android newbie onboarding flow is pretty wild #180

Open
1 task
jverkoey opened this issue Dec 7, 2016 · 12 comments
Open
1 task

Android newbie onboarding flow is pretty wild #180

jverkoey opened this issue Dec 7, 2016 · 12 comments

Comments

@jverkoey
Copy link
Contributor

jverkoey commented Dec 7, 2016

I get the following error the first time I try to run ./gradlew check:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html.
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.RuntimeException: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

To solve this I had to add the following to my bash_profile:

export ANDROID_HOME=/Users/featherless/Library/Android/sdk
  • We should document this in our Android README.md's
@jverkoey jverkoey changed the title Add documentation for setting up Add documentation for setting up Android Dec 7, 2016
@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

After solving the above I ran into the following error:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html.
File /Users/featherless/.android/repositories.cfg could not be loaded.
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24, Android SDK Build-Tools 24.0.3].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

screen shot 2016-12-07 at 3 40 10 am

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

Looks like I need to install 24.0.3 specifically.

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

After installing 24.0.3 I then received the following error:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html.
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

Appears that 24.0.3 doesn't qualify as a version 24....so installing that now >.<

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

screen shot 2016-12-07 at 3 50 01 am

Couldn't find the license agreement, so I tried creating a new project and hitting build rather than running the runtime-android gradlew script. Finally saw this screen ^ and now appear to be installing a third SDK.

@jverkoey jverkoey changed the title Add documentation for setting up Android Android newbie onboarding flow is pretty wild Dec 7, 2016
@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

I had to manually download the sdk from here: https://dl.google.com/android/repository/sys-img/google_apis/x86_64-24_r10.zip

and then put the extracted files here:

~/Library/Android/sdk/system-images/android-24/google_apis/x86_64

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

Is downloading another .zip:

Looking for SDK updates...
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer)".Downloading https://dl.google.com/android/repository/extras/intel/haxm-macosx_r6_0_5.ziphttps://dl.google.com/android/repository/extras/intel/haxm-macosx_r6_0_5.zip

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

screen shot 2016-12-07 at 12 24 24 pm

Another download dialog ^

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

Another dialog:

screen shot 2016-12-07 at 12 24 46 pm

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

Ran gradlew again and it's asking me to re-download the sdk again :(

@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 7, 2016

screen shot 2016-12-07 at 12 30 29 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant