问题描述
我创建了一个Android应用程序,以通过WiFi连接外部SQL Server并获取一些数据并显示.我通过Build>Build apk生成它的apk.它在build的输出文件夹中创建apk文件夹,其中包含'app.debug.apk'和'app.debug.unaligned.apk'.我在我的Android智能手机安装了它.该应用程序打开并显示布局.它没有显示任何错误消息.但我无法从SQL Server获取我的数据.
我不知道这是什么问题. 帮助我.
推荐答案
您需要按照生成签名的apk:
的步骤操作- 单击构建>在菜单中生成签名的APK.
- 单击"下一步"以为应用程序模块构建APK.
- 单击创建新建以创建新的密钥库文件.
- 填写字段以创建密钥库和键.
- 生成签名的APK.
问题描述
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.
推荐答案
You need to follow steps for generating signed APK:
- Click on Build > Generate Signed APK in the menu.
- Click Next to build an APK for the app module.
- Click on Create New to create a new keystore file.
- Fill in the fields to create your keystore and key as appropriate.
- Generate your signed APK.
For pictorial representation and more detailed answer please refer this link : How to generate signed APK