简体   繁体   English

我如何从 git 克隆以尝试在我的 android 中进行测试?

[英]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我想尝试在我的 android studio 中运行这个 airbnb clone 应用程序,但问题是它在我的 android studio 中不起作用

https://github.com/mdy0501/Airbnb 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我想知道如何在我的 android AVD 中运行该应用程序

Is that possbile..?这可能吗..? running in my android studio that app ?在我的 android studio 中运行那个应用程序? i can't find how to run...我找不到怎么跑...

  1. Make sure the repository you have cloned is Android project确保您克隆的存储库是 Android 项目
  2. Before Run the demo you should sync your projectRun演示之前,您应该同步您的项目

    在此处输入图片说明

    在此处输入图片说明

    You will see a lot output in the Build window at the Android Studio bottom.您将在 Android Studio 底部的Build窗口中看到大量输出。

    在此处输入图片说明

  3. Project sync successfully the Run button will look like this.项目同步成功Run按钮将如下所示。

    在此处输入图片说明

    If sync operation failed it means project did not configure correctly just try to fix the error according to the sync output.如果sync操作失败,则表示项目未正确配置,只需根据sync输出尝试修复错误即可。

Add SDK Location in your local.properties file as below在您的local.properties文件中添加SDK 位置,如下所示

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将该 SDK 位置添加到用户环境变量 ANDROID_HOME
  • Sync gradle with project files将 gradle与项目文件同步
  • Clean and Rebuild Android Project清理并重建 Android 项目
  • Close Android Project, Remove project name from list, restart android studio and add关闭 Android 项目,从列表中删除项目名称,重新启动 android studio 并添加
  • project again and Sync and rebuild project再次项目并同步和重建项目

Edit 1编辑 1

  • Try with File -> Invalidate Caches -> Invalidate,尝试使用 File -> Invalidate Caches -> Invalidate,

  • Delete .gradle and .idea folder in Project删除项目中的.gradle.idea文件夹

  • Delete .AndroidStudio3.1 folder from Home directory [take backup if you want]从主目录中删除.AndroidStudio3.1文件夹 [如果需要,请进行备份]

Then close project from Android Studio, and Remove project from List.然后从 Android Studio 关闭项目,并从列表中删除项目。 Try to start again尝试重新开始

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从git app克隆而不会发生错误 - How can i clone from git app without occurred no error 我如何将尝试捕获的所有异常发送到服务器或电子邮件中? - how can i send all exception from try catch in my app android to server or email? 我尝试从我的应用程序和 Kotlin Android 中的 FireStore 中删除 recyclerView 列表。 我如何在我的适配器中调用删除代码? - I try to delete the recyclerView list from my app and FireStore in Kotlin Android. How can ı call the remove code in my Adapter? 如何在手机上安装特定版本的Android进行测试? - How can I install a specific version of Android on my phone for testing? 如何加快我的 Android 应用程序测试 - How can I speed up my Android App testing git clone:如何克隆浏览器的Android 2.2兼容分支? - git clone: How do I clone an Android 2.2 compatible branch of Browser? 来自 git 实验室的 Android Studio 克隆存储库 - Android Studio clone Repository from git lab 尝试在Android Studio中构建项目时如何解决此错误? - How can I fix this error when I try to build my project in Android Studio? 如何将Android测试库与Android Studio中的应用程序库分开? - How do I keep my Android testing libraries separate from my application libraries in Android Studio? 如何使用Android Studio克隆远程git存储库? - How to clone a remote git repository with Android Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM