问题
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:
- 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
来源:https://stackoverflow.com/questions/37267071/generating-apk-and-test-in-android-smartphones-not-work