Generating apk and test in android smartphones not work

风流意气都作罢 提交于 2019-12-12 03:45:04

问题


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.


回答1:


You need to follow steps for generating signed APK:

  1. Click on Build > Generate Signed APK in the menu.
  2. Click Next to build an APK for the app module.
  3. Click on Create New to create a new keystore file.
  4. Fill in the fields to create your keystore and key as appropriate.
  5. Generate your signed APK.

For pictorial representation and more detailed answer please refer this link : How to generate signed APK



来源:https://stackoverflow.com/questions/37267071/generating-apk-and-test-in-android-smartphones-not-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!