android-design-library icon indicating copy to clipboard operation
android-design-library copied to clipboard

After importing 1-Base, SDK location not found

Open dodokov opened this issue 9 years ago • 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 avatar Oct 24 '15 21:10 dodokov

@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.

andreipop avatar Oct 31 '15 21:10 andreipop

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.

edoan avatar Nov 18 '15 20:11 edoan

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

sih4sing5hong5 avatar May 10 '16 07:05 sih4sing5hong5

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

juanjoc333 avatar Jun 01 '16 21:06 juanjoc333

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

taquo avatar Aug 17 '16 05:08 taquo

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.

baggednismo avatar Sep 14 '17 15:09 baggednismo