googlecodelabs/android-design-library

After importing 1-Base, SDK location not found

dodokov opened this issue · 6 comments

  1. Double checked local.properties in root have location of my SDK: sdk.dir=/Applications/android-sdk-mac_x86. (Using Mac, 10.11). Tried manually to change SDK location in sdk.dir using relative notation ../../../ (etc), same outcome
  2. Tools-Android-SDK Managers sees SDK, all updated, Android Support Library 23.1 Installed, Build-tools 23.1 installed, SDK tools 24.4.1 installed
  3. while importing project, tried both manually specifying Gradle location (inside AStudio package (2.4)), or leave it for AStudio to download Gradle

Anyone has suggestions? Other projects on this machine works without problem (projects using design support lib)

@dodokov The project appears to be set up as a module inside the 'android-design-library' project. If you clone the repo and import 'android-design-library' instead of just 1-Base, you can then run it.

edoan commented

Perhaps Step 2 on this page (https://www.code-labs.io/codelabs/material-design-style/index.html#1) should be omitted:
Select the 1-Base directory from the sample code folder (Quickstart > Import Project… > 1-Base).

Importing the entire android-design-library-master folder into Android Studio works with no Gradle errors.

I got same error when I import the 1-Base folder.
I change to import the entire android-design-library-master folder into Android Studio,
and then fix the error.

Thank you! @andreipop and @edoan

Same here, importing the entire android-design-library-master solves the problem. Thanks @andreipop and @edoan

taquo commented

Apologize for confusion, I'll update codelab doc, to make sure import entire android-design-library-master.

I spent the last 30 minutes checking environment variables, local.properties, project structure & invalidating caches to find this issue by chance. Thanks for the information, I was about to give up on the demo app entirely.