APK位置,在新的Andr​​oid工作室 [英] Apk location in New Android Studio

查看:114
本文介绍了APK位置,在新的Andr​​oid工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用全新的Andr​​oid Studio和无法找到的IDE,它实际上定位?

I started using new Android Studio and cant find the APK of the application in IDE,where it actually locates?

推荐答案

要帮助人们谁可能寻求答案,同样的问题,重要的是要知道什么类型的项目,你在工作室使用。

To help people who might search for answer to this same question, it is important to know what type of projects you are using in Studio.

摇篮

在创建新项目时,一般推荐的是摇篮默认的项目类型。

The default project type when creating new project, and the recommended one in general is Gradle.

对于所谓的富的新项目,主文件夹下的结构将

For a new project called "Foo", the structure under the main folder will be

Foo/
    settings.gradle
    Foo/
        build.gradle
        build/

当内部的富文件夹是主模块(该结构可以让你在不改变相同的结构以后创造更多的模块)。

Where the internal "Foo" folder is the main module (this structure allows you to create more modules later on in the same structure without changes).

在此设置中,生成APK的位置将是在

In this setup, the location of the generated APK will be under

Foo/Foo/build/apk/...

请注意,每个模块可产生其自身的输出,所以真正的输出更

Note that each module can generate its own output, so the true output is more

Foo/*/build/apk/...

修改的 在Android的工作室位置路径的生成输出的最新版本

EDIT On the newest version of the Android Studio location path for generated output is

Foo/*/build/outputs/apk/...

的IntelliJ

如果你的IntelliJ切换到演播室之前用户,并直接导入你的IntelliJ的项目,然后什么都没有改变。输出的位置将是相同的下

If you are a user of IntelliJ before switching to Studio, and are importing your IntelliJ project directly, then nothing changed. The location of the output will be the same under:

out/production/...

请注意:这将成为1.0左右,有时pcated德$ P $

Note: this is will become deprecated sometimes around 1.0

的Eclipse

如果您是直接导入Android的Eclipse项目,不这样做! 只要你在你的项目中(广口瓶或库项目)的依赖,这是行不通的,你的项目将无法正确安装。 如果你有没有依赖关系,那么APK将在相同的位置,你会发现它在Eclipse:

If you are importing Android Eclipse project directly, do not do this! As soon as you have dependencies in your project (jars or Library Projects), this will not work and your project will not be properly setup. If you have no dependencies, then the apk would be under the same location as you'd find it in Eclipse:

bin/...

但是我不能强调足够的重要性的不可以这样做。

这篇关于APK位置,在新的Andr​​oid工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆