I found a kind of interesting project on a githaba, and just for the future I decided to try to clone and watch how projects are launched. I clone, it seems everything is as it should, but alas, neither build.gradle nor the launch button (I mean Shift f10) is displayed, stupidly gray. That is actually the question of how to run cloned projects? For the sake of interest, you can explain on the provided above.

    2 answers 2

    The project was created without a build system (Gradle / Maven), so you need to import it as a regular Android project (Android Studio / Idea).

    Or you can use the standard adb utility to install on the emulator:

     adb install [.apk путь] 
    • in the sense of a normal Android project? I do it through git clone and the address that is in github. Or how? it is possible in more detail. And with the second method. Apk path in my repository where will be located apk Tipo? - Inkognito
    • one
      Import via IDE. Without an IDE it will be quite hard to build a project. To do this, you will need to manually create R.java, compile all java files via javac , transfer all class files to dex via dx and generate apk from them via aapt . - Victor Khovanskiy
    • And only after that it will be possible to download the generated file to the device via adb install . - Victor Khovanskiy

    Simply put, you can first clone the repository wherever you like with the git clone command, then do the Import Project and download the necessary SDKs if necessary, then you can run the downloaded project.

    The second way is to add the run configuration and set the launch settings in it by default. (something like Deploy: Default APK, Launch: Default Activity, Module: app)