使用 Rhohub 构建的 .apk 文件无法在设备上运行 [英] .apk file build with Rhohub not working on the device

查看:30
本文介绍了使用 Rhohub 构建的 .apk 文件无法在设备上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的设备中安装 .apk 文件后,当我尝试打开它时,它说不幸的是应用程序已停止.它在我的 Rhomobile 的 Android Rhosimulator 上运行良好,但我不明白它为什么这么说.

After installing the .apk file in my device ,when i am trying to open it it is saying Unfortunately the application has stopped. Its working fine on my Rhomobile's Android Rhosimulator,then I cant understand why it is saying so.

更新:今天我在我的本地机器上构建了 .apk 文件,它的大小为 11mb,而我在 Rhohub 上构建的 .apk 文件的大小为 3.5mb,一个有趣的事实是,在本地机器上构建的文件正在运行,但它造成了另外两个问题:1. .apk 文件对于一个简单的应用程序来说太大了,我的开发伙伴纯粹是在 android 和 java 上构建的,它是 1 mb.2. 我所包含的 css 文件在我打开应用程序时有时会起作用,有时不起作用.

Update: Today I built the .apk file in my local machine which size is 11mb compare to the size of the .apk file which I had built on Rhohub which was 3.5mb,One interesting fact is that the file built on local machine is working but it has created 2 more problems: 1. The .apk file size is too much for a simple application which my fellow developer had built purely on android and java and it was 1 mb. 2. The css file which I has included is working some time when I open the application and some times it doesn't work.

你们能帮我减小文件大小吗?我知道跨平台(Rhomobile)大小可能很大,但 11 倍太多了.

Guys can you help me to reduce the file size I know that being cross platform(Rhomobile) size may be large but 11 times more is too much.

推荐答案

好吧,我不知道这是怎么发生的,我想是因为我没有尝试使用任何其他 android 版本运行该应用程序.
所以最后我的应用程序创建成功并且只用 2.5mb 构建.

Ok guys I dont know how it happened, I think because I didn't try to run the application with any other android versions.
So finally my application was created successfully and built with only 2.5mb.

这篇关于使用 Rhohub 构建的 .apk 文件无法在设备上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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