简体   繁体   中英

How can i clone from git for try to testing in my android?

I want to try to run this airbnb clone app in my android studio but the problem is it's not working in my android studio

https://github.com/mdy0501/Airbnb

It just show in my console

!-- console --!

7:01:05: Executing task...


> Task :help

Welcome to Gradle 5.1.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see a list of command-line options, run gradle --help

To see more detail about a task, run gradle help --task <task>

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
7:01:05: Task execution finished.  

I want to know how to run that app in my android AVD

Is that possbile..? running in my android studio that app ? i can't find how to run...

  1. Make sure the repository you have cloned is Android project
  2. Before Run the demo you should sync your project

    在此处输入图片说明

    在此处输入图片说明

    You will see a lot output in the Build window at the Android Studio bottom.

    在此处输入图片说明

  3. Project sync successfully the Run button will look like this.

    在此处输入图片说明

    If sync operation failed it means project did not configure correctly just try to fix the error according to the sync output.

Add SDK Location in your local.properties file as below

sdk.dir=C\:\\Users\\Aditya\\AppData\\Local\\Android\\Sdk

If correct location already present. Try following options

  • Add that SDK location to user environment variable ANDROID_HOME
  • Sync gradle with project files
  • Clean and Rebuild Android Project
  • Close Android Project, Remove project name from list, restart android studio and add
  • project again and Sync and rebuild project

Edit 1

  • Try with File -> Invalidate Caches -> Invalidate,

  • Delete .gradle and .idea folder in Project

  • Delete .AndroidStudio3.1 folder from Home directory [take backup if you want]

Then close project from Android Studio, and Remove project from List. Try to start again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM