material-motion / tools

The Material Motion team's tools
Other
7 stars 5 forks source link

Android newbie onboarding flow is pretty wild #180

Open jverkoey opened 7 years ago

jverkoey commented 7 years ago

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
jverkoey commented 7 years ago

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 commented 7 years ago

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

jverkoey commented 7 years ago

Looks like I need to install 24.0.3 specifically.

jverkoey commented 7 years ago

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 commented 7 years ago

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

jverkoey commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

Another download dialog ^

jverkoey commented 7 years ago

Another dialog:

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

jverkoey commented 7 years ago

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

jverkoey commented 7 years ago

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