title: Error in implementing OpenStreetMap
body: <p>I am trying to implement OpenStreetMap in android studio. I successfully added the libraries as shown below.</p>
  
  <p><a href="https://i.stack.imgur.com/XwYQi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XwYQi.png" alt="enter image description here"></a></p>
  
  <p>This is my MainActivity:</p>
  
  <pre><code>package com.example.re.osm;
  
  import org.osmdroid.views.MapController;
  import org.osmdroid.views.MapView;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  
  import com.example.harjotkaur.osm.R;
  
      public class MainActivity extends Activity {
  
          private MapView myOpenMapView;
          private MapController myMapController;
  
          /** Called when the activity is first created. */
          @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
  
              myOpenMapView = (MapView)findViewById(R.id.openmapview);
              myOpenMapView.seharjotkaurtBuiltInZoomControls(true);
              myMapController = myOpenMapView.getController();
              myMapController.setZoom(4);
          }
  
      }
  </code></pre>
  
  <p>This is my build.gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
          applicationId "com.example.re.osm"
          minSdkVersion 15
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:26.+'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
      testCompile 'junit:junit:4.12'
      compile files('libs/slf4j-android-1.5.8.jar')
  compile files('libs/osmdroid-android-3.0.8.jar')
  
  }
  </code></pre>
  
  <p>This is my manifest file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.re.osm"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="10" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="OSM" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="OSM" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>But when I run the aplication, I get to see only small rectangles and not the map.
  How should I fix this? What steps should I follow?</p>
  
  <p>Any ideas are appreciated? </p>
  
  <p>Thanks</p>