Where to find / configure for "Artifact" in Android Studio?

I am running on Android dev. environment, and I'm at a point where I would like to distribute my applications in a wider test environment than my own phone and simulator.

Along these lines, I'm trying to create a signed debug apk that I can send via email, install, etc. My problem is that many of the instructions on how to do this provide a set of steps that start with “Go to File” in your Android studio, select “Project Structure”, and then click “Artifacts” in the left pane.

The problem is ... I don’t have any “artifacts” in my left pane. I have an "SDK Location", "Project" and "Modules" application.

I checked the other projects that I created, and none of them have “Artifacts”. So ... where, how can I configure my environment so that I have these “Artifacts” in my left pane, which I, in fact, must configure for my signed debug apk.

I am using Android Studio version 1.1.0.

Thank you very much.

+6
source share
2 answers

No need to worry about ' artifacts ', just go to the workspace folder from Windows Explorer , then go to app->build->outputs , you can see the apk folder. That's all.

+1
source

I also had this problem at startup.

The problem is that if any of your modules has a Manifest.xml file, AS will automatically assume that you need aar and all modules, even if they are java modules to follow suit.

To fix this, you will need to create a new project without activity, close the studio. Then go to the directory in which the application runs. Delete the default app folder and update settings.gradle to remove include 'app' .

Reload the project, and AS will know that this project is only java, and when you press F4 to configure the module, you will see that you have the option to add artifacts , one of which is jar.

Others think that keep in mind that if you are developing android only jar (obviously very likely), you will need to go to the libraries tab and add from maven com.google.android:android:{version} so that you can create your own project. Define the provided scope as the one who uses it will provide this dependency.

The most recent version of this post is 4.1.1.4

EDIT:

If you installed the project SDK in the Android option, you will not need to include the android library.

+1
source

Source: https://habr.com/ru/post/984463/


All Articles