项目名称包含不支持的字符!错误而在Android的出口签署APK [英] Project name contains unsupported characters! Error while exporting signed APK in Android

查看:3235
本文介绍了项目名称包含不支持的字符!错误而在Android的出口签署APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到项目名称中包含不支持的字符!错误而导出的应用程序,因为我的项目名称包含在名称中的单引号。 但我的问题是,如果出口是不允许的,为什么它让我以创建项目在第一位和第二,我怎么能解决它,而不会损坏任何项目的资源?

I am getting "Project name contains unsupported characters!" error while exporting the app since my project name contains a single quote in the name. But my question is if exporting is not allowed why did it allow me to create the project at first place and second, how can I resolve it without damaging any project resources?

推荐答案

Android包名称只能包含字母,数字和下划线(_)。我不知道你是如何能够创建一个具有非法字符包名的Andr​​oid项目(有没有可能你AndroidManifest改变它,你已经创建项目后?)

Android package names may only contain letters, numbers and an underscore ('_'). I have no idea how you were able to create an Android project with a package name that has an illegal character (is it possible you changed it in AndroidManifest after you've created the project?)

修复这是相当简单,只需重命名你的包在AndroidManifest和搜索和;随着新一期的所有源文件(.java文件)来替换旧的包名。如果你使用的是Linux下可以使用一个简单的bash命令来实现,如果你使用的是Windows,你可能需要手动执行此操作。

Fixing this is fairly simple, just rename your package in AndroidManifest and search & replace your old package name with the new one in all of your source files (.java files). If you're using Linux this can be achieved with a simple bash command, if you're on Windows you'll probably have to do this manually.

这篇关于项目名称包含不支持的字符!错误而在Android的出口签署APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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