从摇篮工程Android的工作室出口商未签名的apk [英] Export unsigned apk from a Gradle Project in Android Studio

查看:168
本文介绍了从摇篮工程Android的工作室出口商未签名的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常创建项目与Eclipse,并将其导入Android的工作室,因为我讨厌项目结构AS给我。在it's模块设置,我要创建神器这让我输出内置APK一定路径的可能性。

I usually create projects with Eclipse and import them into Android Studio, because I hate the project structure AS gives me. In it´s module settings, I have the possibility to create artifacts which allow me to output the built apk to a certain path.

现在我已经创建了一个摇篮的项目直接与AS,似乎这些项目比Eclipse项目相当少的选项。我不找到任何输出我的APK和我不觉得在我的项目文件夹中的APK建成后。

Now I have created a Gradle project directly with AS and it seems that those projects have quite less options than eclipse projects. I don´t find anything to output my apk and I don´t find any apk inside my project folder after building.

我如何得到我的签名APK出来的构建过程??

How do I get my unsigned apk out of the build process??

推荐答案

使用

Build > Make Project

打造而成的Andr​​oid Studio中的APK文件。

to build an apk file from Android Studio.

您可以得到下面的路径下的无符号的apk

You can get your unsigned apk under the below path

$YOUR_PROJECT/$YOUR_MODULE/build/apk

无符号的apk文件,将在其名称中签名文本。

unsigned apk files will have "unsigned" text in their names.

[更新]:

在Android的工作室最近发布的,你不会得到sysncing apk文件,或使项目。有为了得到apk文件两个方法

In Recent release of Android Studio you will not get apk file on sysncing or Make Project. There are two other methods in order to get the apk file

  1. 运行应用程序
  2. 执行装配任务的嵌入式终端窗口Studio窗口或在底部右侧摇篮板present(项目根)

gradlew assembleDebug(或任何版本的变体光盘你想要构建的)

gradlew assembleDebug(or whatever build varient you want a build for)

和更新新的apk路径是

and the update new apk path will be

$YOUR_PROJECT/$YOUR_MODULE/build/outputs/apk

本已完成由Android的工具队伍,提高了Android Studio的性能。

This has been done by Android Tools team to improve the Android Studio performance.

这篇关于从摇篮工程Android的工作室出口商未签名的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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