为什么我的名字APK通用? [英] Why is my APK name generic?

查看:264
本文介绍了为什么我的名字APK通用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我敢肯定,这是一天的愚蠢的问题,但在这里它去...我有一个应用程序,我需要内部必须由销售在展销会用于分发。我创建成功签订了自我,使用Android工作室(在Windows 7)zipalign处理,发布apk文件。输出文件的名称虽然是简单的应用程序,release.apk。为什么我的应用程序名称不pfixed像所有MyApplication-release.apk输出文件$ P $?我怀疑它是与Android Studio中的文件夹结构,其中它是:为MyApplication - >程序 - > SRC - >等等,等等。我试图重构应用程序文件夹中,以配合我的应用程序的名字,但它提供了一个错误。我敢肯定,我失去了一些东西简单。

I'm sure this is the dumb question of the day, but here it goes... I have an app that I need to distribute "in house" to be used by sales at a trade show. I successfully created a self signed, zipaligned, release apk file using Android Studio (in Windows 7). The name of the output file though is simply app-release.apk. Why is my app name not prefixed to the output file like MyApplication-release.apk? I suspect it has something to do with the folder structure in Android Studio where it is: MyApplication -> app -> src -> etc,etc. I tried refactoring the "app" folder to match my app name but it gives an error. I'm sure I am missing something simple.

推荐答案

是的,它使用你的应用程序模块的文件夹名称。如果您重命名文件夹,您还需要更新您的 settings.gradle 与更新的名称的文件;重构不会自动改变它。

Yes, it uses the folder name of your application's module. If you rename the folder, you also need to update your settings.gradle file with the updated name; the refactoring doesn't automatically change it there.

您更改后的 settings.gradle ,请确保您重新同步的摇篮文件项目。它应该把旗帜您的编辑器窗口顶部的提醒你,你需要做的;如果你不这样做,然后单击工具栏上的按钮。

After you change settings.gradle, make sure you re-sync your project with the Gradle files. It should put a banner at the top of your editor windows reminding you that you need to do it; if you don't, then click the button in the toolbar.

这篇关于为什么我的名字APK通用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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