导出应用程序时使用许可权消失 [英] uses-permission disappears when exporting app

查看:215
本文介绍了导出应用程序时使用许可权消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会开始时,我是一个机器人福利局。这是我的第一个星期Android和虽然它很有趣,我认为我会坚持在未来的iOS开发。

I will start with, I'm an android NEWB. This is my first week with Android and although its been fun I think I'm going to stick with IOS development in the future.

但在我的问题:
我的应用程序是非常简单的。它道出了一个PHP脚本,抓住一些数据并显示给用户。
它在仿真器和设备上运行良好的时候跑/直接从安装Eclipse。但是,如果我出口到一个APK安装的应用程序,它显示无法解析主机MYURL:没有地址与主机名相关。

But on to my issue: My app is very simple. It goes to a PHP script, grabs some data and displays it to the user. Its running fine in the emulator and on a device when ran/installed directly from eclipse. But if I export to an APK and install the app, it shows "Unable to resolve host MYURL: No address associated with hostname".

由于它构建缺失
    
在清单文件。不过,我已经把这个字符串在清单文件中但每次我的应用程序导出到APK时间字符串从清单文件中消失。
我看着它实时发生的,我已经在Eclipse开放清单文件,单击导出签署Android应用程序,通过向导和权当它建立了APK权限行就这样消失。

Its because the build is missing in the manifest file. However I've put that string in the manifest file but every time I export the app to an APK the string disappears from the manifest file. I've watched it happen in real time, I have the manifest file open in Eclipse, click "Export signed android application", go through the wizard and right when it builds the APK the permission line just disappears.

之前有人看到这个问题?

Has anybody seen this issue before?

推荐答案

我有同样的问题。在调试过程中它会工作得很好,但是当我试图导出应用程序,将没有权限,他们从神秘清单文件中消失了。

I had the same problem. It would work fine during debugging but when I tried to export the app it wouldn't have permissions and they mysteriously disappeared from the manifest file.

原来我是在MyProject的/ bin中更新的权限/ AndroidManifet.xml不MyProject的/ AndroidManifet.xml

It turns out I was updating the permissions in the MyProject/bin/AndroidManifet.xml not MyProject/AndroidManifet.xml

这篇关于导出应用程序时使用许可权消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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