android-floating-action-button icon indicating copy to clipboard operation
android-floating-action-button copied to clipboard

How to use this?

Open BugMen opened this issue 7 years ago • 2 comments

please tell me how to use this function?

BugMen avatar Jul 24 '17 08:07 BugMen

I can see the code myself, but I have no clue how to open this "Project" in Android Studio. I tried opening the full repository and that fails to build, tried opening the library, but that fails to find a build function in the gradle, and I tried opening just the Sample folder, but that says there are missing files. Does anyone know how to actually open the sample app in Android Studio so I can watch the app working?

p16774 avatar Aug 12 '17 17:08 p16774

@p16774 without seeing the specific errors you are experiencing, it's hard to diagnose, but here are some steps / thoughts to keep in mind...

Clone it into your desired directory:

cd ~
git clone https://github.com/futuresimple/android-floating-action-button.git

Open the whole project in Android Studio:

  1. File → Open
  2. Select: ~/android-floating-action-button (or wherever you cloned to)
  3. Press OK when Android Studio prompts you to setup Gradle

If you get an error that SDK location is not found, follow the suggested fix. If the local.properties file is automatically created for you, make sure there is a copy at the root folder at ~/android-floating-action-button/ (eg. one level above /library and /sample)

If you get an error about not having the JDK, follow the steps to set the environment variable or go to File→Other Settings→Default Project Structure→SDKs and choose to use the built-in JDK.

If you are prompted to update the Gradle version, go ahead and do it.

If you don't have the v22 build tools, either download them or update the gradle files to reference the newer version on your system (eg. 25)

joshualyon avatar Aug 29 '17 22:08 joshualyon