Reputation: 123
I build the release version to publish, but it don't comunicate with my api, however, the debug version works fine.
Is there a way to debug an release version to find what is happening? I tried to open dev tools but it doest work.
Any ideas what I can do?
Upvotes: 1
Views: 1648
Reputation: 1266
Yes you can debug your release apk in android studio and can se the logcat there you can find out what error you are into.
Upvotes: 0
Reputation: 685
maybe its because you are not using a secure api. try adding this in AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" /> <!-- < add this line > -->
<application
...
android:usesCleartextTraffic="true" <!-- < add this line > -->
/>
...
</application>
Upvotes: 3