问题描述
我创建了一个Android应用程序,用于通过WiFi连接外部sql服务器,并获取了一些数据并显示出来.我通过Build>Build apk
生成了它的apk
.它在包含'app.debug.apk'
和'app.debug.unaligned.apk'
的build
的输出文件夹中创建apk
文件夹.我将其安装在我的android智能手机中.该应用已打开并显示布局.它不显示任何错误消息.但是我无法从sql server中获取数据.
I created an android application to connect external sql server over WiFi and fetched some data and displayed. I generate its apk
via Build>Build apk
. It creates apk
folder in output folder of build
which contains 'app.debug.apk'
and 'app.debug.unaligned.apk'
. I installed it in my android smartphone. The app is opened and shows layout. It doesn't shows any error message. But I can't fetch my data from sql server.
我不知道这是什么问题.救救我.
I don't know what is the problem with that.Help me.
推荐答案
您需要按照以下步骤生成签名的APK:
You need to follow steps for generating signed APK:
- 单击菜单中的生成">生成签名的APK".
- 单击下一步"为应用程序模块构建APK.
- 单击新建"以创建新的密钥库文件.
- 填写相应的字段以创建您的密钥库和密钥.
- 生成您签名的APK.
有关图片表示和更详细的答案,请参考以下链接:如何生成签名的APK
For pictorial representation and more detailed answer please refer this link : How to generate signed APK
这篇关于在Android智能手机中生成APK和测试无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!