Why can't my Android release build connect to the Internet?

PDF for offline use

Let us know how you feel about this


0/250

Cause

The most common cause of this issue is that the INTERNET permission is automatically included in a debug build, but must be set manually for a release build. This is because the Internet permission is used to allow a debugger to attach to the process, as described for "DebugSymbols" here.

Fix

To resolve the issue, you can require the Internet permission in the Android Manifest. This can be done either through the manifest editor or the manifest's sourcecode:

  • Fix in Editor: In your Android project, go to Properties -> AndroidManifest.xml -> Required Permissions and check Internet
  • Fix in Sourcecode: Open the AndroidManifest in a source editor and add the permission tag inside the <Manifest> tags:
<Manifest>
...
<uses-permission android:name="android.permission.INTERNET" />
</Manifest>

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.