{"action":"created","issue":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/546","repository_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal","labels_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/546/comments","events_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/546/events","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/546","id":329791367,"node_id":"MDU6SXNzdWUzMjk3OTEzNjc=","number":546,"title":"Detached Expo App cannot build after adding SDK","user":{"login":"yirui94","id":13990158,"node_id":"MDQ6VXNlcjEzOTkwMTU4","avatar_url":"https://avatars1.githubusercontent.com/u/13990158?v=4","gravatar_id":"","url":"https://api.github.com/users/yirui94","html_url":"https://github.com/yirui94","followers_url":"https://api.github.com/users/yirui94/followers","following_url":"https://api.github.com/users/yirui94/following{/other_user}","gists_url":"https://api.github.com/users/yirui94/gists{/gist_id}","starred_url":"https://api.github.com/users/yirui94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yirui94/subscriptions","organizations_url":"https://api.github.com/users/yirui94/orgs","repos_url":"https://api.github.com/users/yirui94/repos","events_url":"https://api.github.com/users/yirui94/events{/privacy}","received_events_url":"https://api.github.com/users/yirui94/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-06T09:36:51Z","updated_at":"2018-06-14T04:34:25Z","closed_at":"2018-06-14T04:34:25Z","author_association":"NONE","body":"<!--\r\n 1. IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MAY CLOSE YOUR ISSUE WITHOUT INVESTIGATION\r\n 2. SEARCH EXISTING ISSUES FOR AN ANSWER: https://goo.gl/pspQNY\r\n 3. See our Common Issues documentation: https://goo.gl/BDcfZZ\r\n 4. See our contributing guidelines: https://goo.gl/h19DnX\r\n-->\r\n\r\n**Description:**\r\n<!-- (write below this line) -->\r\n\r\nHi all, I am posting this because I am at my wits end after detaching my expo app to use onesignal. I am able to get the android app working after detaching but after adding & linking the SDK, I am unable to build. \r\n\r\nI have followed the instructions to link and update the AndroidManifest and build.gradle but to no avail. They are attached below.\r\n\r\n**Environment**\r\n<!-- Example:\r\n1. What version of the OneSignal React-Native SDK are you using?\r\n2. How did you add the SDK to your project (eg. npm)\r\n -->\r\n* SDK added via `npm install --save react-native-onesignal` then `react-native link react-native-onesignal`\r\n* Expo version 24.0.2\r\n* react-native-onesignal version 3.2.4\r\n\r\n**Steps to Reproduce Issue:**\r\n\r\n  1. Detach expo app\r\n  2. Install the OneSignal SDK using npm\r\n  3. Update AndroidManifest & build.gradle following SDK documentation\r\n  4. Link, clean and build\r\n  5. Compilation failed\r\n\r\n\r\n**Anything else:**\r\n\r\n(crash stacktraces, as well as any other information here)\r\n\r\n\r\n![screen shot 2018-06-06 at 5 26 34 pm](https://user-images.githubusercontent.com/13990158/41029760-254fd6ca-69af-11e8-85c0-57294588af88.png)\r\n![screen shot 2018-06-06 at 5 27 36 pm](https://user-images.githubusercontent.com/13990158/41029776-2c2ec528-69af-11e8-9813-fcad567de5f2.png)\r\n\r\ntop level build.gradle\r\n```\r\n// Top-level build file where you can add configuration options common to all sub-projects/modules.\r\n\r\nbuildscript {\r\n  repositories {\r\n    jcenter()\r\n  }\r\n  dependencies {\r\n    classpath 'com.android.tools.build:gradle:2.3.3'\r\n    classpath 'com.google.gms:google-services:3.0.0'\r\n    classpath 'de.undercouch:gradle-download-task:2.0.0'\r\n    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'\r\n  }\r\n}\r\n\r\nallprojects {\r\n  repositories {\r\n    maven { url 'https://maven.google.com' }\r\n    maven {\r\n      url \"$rootDir/maven\"\r\n    }\r\n    maven {\r\n      // We use a modified build of com.android.support.test:runner:1.0.1. Explanation in maven-test/README\r\n      url \"$rootDir/maven-test\"\r\n    }\r\n    jcenter()\r\n    maven {\r\n      // Local Maven repo containing AARs with JSC built for Android\r\n      url \"$rootDir/../js/node_modules/jsc-android/android\"\r\n    }\r\n    flatDir {\r\n      dirs 'libs'\r\n      // dirs project(':expoview').file('libs')\r\n    }\r\n    maven { url \"https://jitpack.io\" }\r\n    maven {\r\n      url 'https://maven.google.com'\r\n    }\r\n\r\n    // Want this last so that we never end up with a stale cache\r\n    mavenLocal()\r\n  }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n  delete rootProject.buildDir\r\n}\r\n```\r\n\r\napp/build.gradle\r\n```\r\nbuildscript {\r\n    repositories {\r\n        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal \r\n    }\r\n    dependencies {\r\n        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.10.0, 0.99.99]'\r\n    }\r\n}\r\n\r\napply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'\r\n\r\nbuildscript {\r\n  repositories {\r\n    maven { url 'https://maven.fabric.io/public' }\r\n  }\r\n\r\n  dependencies {\r\n    classpath 'io.fabric.tools:gradle:1.+'\r\n  }\r\n}\r\napply plugin: 'com.android.application'\r\napply plugin: 'io.fabric'\r\napply plugin: 'com.neenbedankt.android-apt'\r\n\r\nrepositories {\r\n  maven { url 'https://maven.fabric.io/public' }\r\n}\r\n\r\nandroid {\r\n  compileSdkVersion 26\r\n  buildToolsVersion '27.0.3'\r\n\r\n  defaultConfig {\r\n    applicationId 'com.rate.rates'\r\n    targetSdkVersion 25\r\n    versionCode 20\r\n    versionName '1.1.0'\r\n    ndk {\r\n      abiFilters 'armeabi-v7a', 'x86'\r\n    }\r\n    multiDexEnabled true\r\n    testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n    // Deprecated. Used by net.openid:appauth\r\n    manifestPlaceholders = [\r\n      'appAuthRedirectScheme': 'host.exp.exponent',\r\n      'onesignal_app_id': '###',\r\n      'onesignal_google_project_number': 'REMOTE',\r\n    ]\r\n  }\r\n  dexOptions {\r\n    javaMaxHeapSize System.getenv(\"DISABLE_DEX_MAX_HEAP\") ? null : \"8g\"\r\n  }\r\n  productFlavors {\r\n    // Define separate dev and prod product flavors.\r\n    dev {\r\n      // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin\r\n      // to pre-dex each module and produce an APK that can be tested on\r\n      // Android Lollipop without time consuming dex merging processes.\r\n      minSdkVersion 21\r\n    }\r\n    devRemoteKernel {\r\n      minSdkVersion 21\r\n    }\r\n    dev19 {\r\n      // For debugging / development on older SDK versions. Increases build\r\n      // time so use 'dev' if not running on older SDKs.\r\n      minSdkVersion 19\r\n    }\r\n    prod {\r\n      // The actual minSdkVersion for the application.\r\n      minSdkVersion 19\r\n    }\r\n  }\r\n  buildTypes {\r\n    debug {\r\n      debuggable true\r\n    }\r\n    release {\r\n      minifyEnabled true\r\n      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n      zipAlignEnabled true\r\n    }\r\n  }\r\n  signingConfigs {\r\n    debug {\r\n      storeFile file('../debug.keystore')\r\n    }\r\n  }\r\n  lintOptions {\r\n    abortOnError false\r\n  }\r\n}\r\n\r\n// Don't use modern jsc-android since it still has some critical bugs that\r\n// crash applications when the string for the JS bundle is loaded and when\r\n// locale-specific date functions are called.\r\n// configurations.all {\r\n//   resolutionStrategy {\r\n//     force 'org.webkit:android-jsc:r216113'\r\n//   }\r\n// }\r\n\r\n\r\ntask exponentPrebuildStep(type: Exec) {\r\n  workingDir '../'\r\n  if (System.getProperty('os.name').toLowerCase().contains('windows')) {\r\n    commandLine 'cmd', '/c', '.\\\\detach-scripts\\\\prepare-detached-build.bat'\r\n  } else {\r\n    commandLine './detach-scripts/prepare-detached-build.sh'\r\n  }\r\n}\r\npreBuild.dependsOn exponentPrebuildStep\r\n\r\n\r\ndependencies {\r\n    compile project(':react-native-onesignal')\r\n  compile fileTree(dir: 'libs', include: ['*.jar'])\r\n\r\n  compile 'com.android.support:multidex:1.0.1'\r\n\r\n  // Our dependencies\r\n  compile 'com.android.support:appcompat-v7:26.0.1'\r\n\r\n  // Our dependencies from ExpoView\r\n  // DON'T ADD ANYTHING HERE THAT ISN'T IN EXPOVIEW. ONLY COPY THINGS FROM EXPOVIEW TO HERE.\r\n  compile 'com.android.support:appcompat-v7:26.0.1'\r\n  compile 'com.facebook.android:facebook-android-sdk:4.7.0'\r\n  compile('com.facebook.android:audience-network-sdk:4.22.1') {\r\n    exclude module: 'play-services-ads'\r\n  }\r\n  provided 'org.glassfish:javax.annotation:3.1.1'\r\n  compile 'com.jakewharton:butterknife:7.0.1'\r\n  compile 'de.greenrobot:eventbus:2.4.0'\r\n  compile 'com.amplitude:android-sdk:2.9.2' // Be careful when upgrading! Upgrading might break experience scoping. Check with Jesse. See Analytics.resetAmplitudeDatabaseHelper\r\n  compile 'com.squareup.picasso:picasso:2.5.2'\r\n  compile 'com.google.android.gms:play-services-gcm:9.8.0'\r\n  compile 'com.google.android.gms:play-services-analytics:9.8.0'\r\n  compile 'com.google.android.gms:play-services-maps:9.8.0'\r\n  compile 'com.google.android.gms:play-services-auth:9.8.0'\r\n  compile 'com.google.android.gms:play-services-location:9.8.0'\r\n  compile 'com.google.android.gms:play-services-ads:9.8.0'\r\n  apt 'com.raizlabs.android:DBFlow-Compiler:2.2.1'\r\n  compile \"com.raizlabs.android:DBFlow-Core:2.2.1\"\r\n  compile \"com.raizlabs.android:DBFlow:2.2.1\"\r\n  compile \"com.madgag.spongycastle:core:1.53.0.0\"\r\n  compile \"com.madgag.spongycastle:prov:1.53.0.0\"\r\n  debugCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'\r\n  // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'\r\n  releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'\r\n  compile 'com.facebook.device.yearclass:yearclass:1.0.1'\r\n  compile 'commons-io:commons-io:1.3.2'\r\n  compile 'me.leolin:ShortcutBadger:1.1.4@aar'\r\n  compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'\r\n  compile 'com.theartofdev.edmodo:android-image-cropper:2.4.7'\r\n  compile 'com.yqritc:android-scalablevideoview:1.0.1'\r\n  compile 'commons-codec:commons-codec:1.10'\r\n  compile 'com.segment.analytics.android:analytics:4.3.0'\r\n  compile 'com.google.zxing:core:3.2.1'\r\n  compile 'net.openid:appauth:0.4.1'\r\n  compile 'com.airbnb.android:lottie:2.2.0'\r\n  compile 'io.branch.sdk.android:library:2.6.1'\r\n  compile('io.nlopez.smartlocation:library:3.2.11') {\r\n    transitive = false\r\n  }\r\n  compile 'com.android.support:exifinterface:26.0.1'\r\n  compile 'com.squareup.okhttp3:okhttp:3.4.1'\r\n  compile 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1'\r\n  compile 'com.squareup.okhttp3:okhttp-ws:3.4.1'\r\n  compile 'com.squareup.okio:okio:1.9.0'\r\n\r\n  // Testing\r\n  androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'\r\n  // We use a modified build of com.android.support.test:runner:1.0.1. Explanation in maven-test/README\r\n  androidTestCompile 'com.android.support.test:runner:1.0.1'\r\n  androidTestCompile 'com.android.support:support-annotations:26.0.1'\r\n  androidTestCompile 'com.google.code.findbugs:jsr305:3.0.0'\r\n  androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'\r\n  androidTestCompile 'com.azimolabs.conditionwatcher:conditionwatcher:0.2'\r\n\r\n\r\n  \r\n  compile('host.exp.exponent:expoview:24.0.0@aar') {\r\n    transitive = true\r\n  }\r\n  \r\n  \r\n}\r\n\r\n// This has to be down here for some reason\r\napply plugin: 'com.google.gms.google-services'\r\n\r\n```\r\n\r\nAndroid Manifest\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest\r\n  package=\"host.exp.exponent\"\r\n  xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n  xmlns:tools=\"http://schemas.android.com/tools\">\r\n\r\n  <permission\r\n    android:name=\"com.rate.rates.permission.C2D_MESSAGE\"\r\n    android:protectionLevel=\"signature\"/>\r\n\r\n  <!-- These are required permissions to make the app run -->\r\n  <uses-permission android:name=\"com.rate.rates.permission.C2D_MESSAGE\" />\r\n  <uses-permission android:name=\"com.google.android.c2dm.permission.RECEIVE\" />\r\n  <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\r\n  <uses-permission android:name=\"android.permission.INTERNET\" />\r\n  <uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\" />\r\n  <uses-permission android:name=\"android.permission.WAKE_LOCK\" />\r\n\r\n  <!-- ADD PERMISSIONS HERE -->\r\n  <!-- BEGIN OPTIONAL PERMISSIONS -->\r\n  <uses-permission android:name=\"android.permission.MANAGE_DOCUMENTS\" />\r\n  <uses-permission android:name=\"android.permission.READ_INTERNAL_STORAGE\" />\r\n  <uses-permission android:name=\"android.permission.READ_PHONE_STATE\" />\r\n  <uses-permission android:name=\"android.permission.USE_FINGERPRINT\" />\r\n  <uses-permission android:name=\"android.permission.VIBRATE\" />\r\n  <uses-permission android:name=\"com.android.launcher.permission.INSTALL_SHORTCUT\" />\r\n\r\n  <!-- These require runtime permissions on M -->\r\n  <uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />\r\n  <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\r\n  <uses-permission android:name=\"android.permission.CAMERA\" />\r\n  <uses-permission android:name=\"android.permission.READ_CONTACTS\" />\r\n  <uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />\r\n  <uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\r\n  <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\r\n  <uses-permission android:name=\"android.permission.WRITE_SETTINGS\" />\r\n  <!-- END OPTIONAL PERMISSIONS -->\r\n\r\n  <!-- ADD TEST PERMISSIONS HERE -->\r\n\r\n  <uses-feature android:glEsVersion=\"0x00020000\" android:required=\"false\" />\r\n\r\n  <application\r\n    android:name=\".MainApplication\"\r\n    android:allowBackup=\"true\"\r\n    android:icon=\"@mipmap/ic_launcher\"\r\n    android:label=\"@string/app_name\"\r\n    android:largeHeap=\"true\">\r\n\r\n    <activity\r\n      android:name=\".LauncherActivity\"\r\n      android:exported=\"true\"\r\n      android:launchMode=\"singleTop\"\r\n      android:screenOrientation=\"portrait\"\r\n      android:theme=\"@android:style/Theme.Translucent.NoTitleBar\">\r\n      <!-- ADD SHELL SCHEME HERE -->\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".experience.ExperienceActivity\"\r\n      android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\r\n      android:theme=\"@style/Theme.Exponent.Light\"\r\n      android:windowSoftInputMode=\"adjustResize\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".MainActivity\"\r\n      android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\r\n      android:theme=\"@style/Theme.Exponent.Splash\"\r\n      android:windowSoftInputMode=\"adjustResize\">\r\n      <intent-filter>\r\n        <action android:name=\"android.intent.action.MAIN\"/>\r\n\r\n        <category android:name=\"android.intent.category.LAUNCHER\"/>\r\n      </intent-filter>\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".experience.ShellAppActivity\"\r\n      android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\r\n      android:theme=\"@style/Theme.Exponent.Splash\"\r\n      android:windowSoftInputMode=\"adjustResize\">\r\n      <!-- ADD SHELL INTENT FILTERS HERE -->\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".experience.HomeActivity\"\r\n      android:label=\"@string/app_name\"\r\n      android:launchMode=\"singleTask\"\r\n      android:screenOrientation=\"portrait\"\r\n      android:theme=\"@style/Theme.Exponent.Light\">\r\n    </activity>\r\n\r\n    <activity android:name=\"com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <!-- ADD DEV SETTINGS HERE -->\r\n    <activity android:name=\"abi24_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi23_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi22_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi21_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi20_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi19_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi18_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n    <activity android:name=\"abi17_0_0.com.facebook.react.devsupport.DevSettingsActivity\"/>\r\n\r\n    <activity\r\n      android:name=\".ExponentDevActivity\"\r\n      android:exported=\"true\"\r\n      android:label=\"@string/dev_activity_name\"\r\n      android:screenOrientation=\"portrait\"\r\n      android:theme=\"@style/Theme.Exponent.Dark\"\r\n      android:windowSoftInputMode=\"adjustPan\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".oauth.OAuthWebViewActivity\"\r\n      android:screenOrientation=\"portrait\"\r\n      android:theme=\"@style/Theme.Exponent.Light\">\r\n    </activity>\r\n\r\n    <activity\r\n        android:name=\"net.openid.appauth.RedirectUriReceiverActivity\"\r\n        >\r\n      <intent-filter>\r\n        <action android:name=\"android.intent.action.VIEW\"/>\r\n        <category android:name=\"android.intent.category.DEFAULT\"/>\r\n        <category android:name=\"android.intent.category.BROWSABLE\"/>\r\n        <data android:scheme=\"com.rate.rates\" android:path=\"oauthredirect\"/>\r\n      </intent-filter>\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".oauth.OAuthResultActivity\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".chrometabs.ChromeTabsManagerActivity\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".experience.ErrorActivity\"\r\n      android:theme=\"@style/Theme.Exponent.Dark\"\r\n      android:screenOrientation=\"portrait\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\".experience.InfoActivity\"\r\n      android:screenOrientation=\"portrait\"\r\n      android:theme=\"@style/Theme.Exponent.Light\">\r\n    </activity>\r\n\r\n    <activity\r\n      android:name=\"com.facebook.FacebookActivity\"\r\n      android:configChanges=\"keyboard|keyboardHidden|screenLayout|screenSize|orientation\"\r\n      android:label=\"@string/app_name\"\r\n      android:theme=\"@android:style/Theme.Translucent.NoTitleBar\"\r\n      tools:replace=\"android:theme\" />\r\n\r\n    <activity\r\n      android:name=\"com.facebook.ads.InterstitialAdActivity\"\r\n      android:configChanges=\"keyboard|keyboardHidden|screenLayout|screenSize|orientation\"\r\n      android:label=\"@string/app_name\"\r\n      android:theme=\"@android:style/Theme.Translucent.NoTitleBar\" />\r\n\r\n    <service\r\n      android:name=\".ExponentIntentService\"\r\n      android:exported=\"false\" />\r\n\r\n    <!-- Analytics -->\r\n    <receiver\r\n      android:name=\"host.exp.exponent.referrer.InstallReferrerReceiver\"\r\n      android:exported=\"true\">\r\n      <intent-filter>\r\n        <action android:name=\"com.android.vending.INSTALL_REFERRER\" />\r\n      </intent-filter>\r\n    </receiver>\r\n\r\n    <!--\r\n    This crashes: https://code.google.com/p/analytics-issues/issues/detail?id=667\r\n    TODO: turn it back on when it's fixed\r\n    <service\r\n      android:name=\"com.google.android.gms.analytics.CampaignTrackingService\"\r\n      android:enabled=\"true\"\r\n      android:exported=\"false\" />-->\r\n\r\n    <receiver android:name=\"com.google.android.gms.analytics.AnalyticsReceiver\"\r\n              android:enabled=\"true\">\r\n      <intent-filter>\r\n        <action android:name=\"com.google.android.gms.analytics.ANALYTICS_DISPATCH\" />\r\n      </intent-filter>\r\n    </receiver>\r\n\r\n    <service android:name=\"com.google.android.gms.analytics.AnalyticsService\"\r\n             android:enabled=\"true\"\r\n             android:exported=\"false\"/>\r\n\r\n    <!-- GCM -->\r\n    <receiver\r\n      android:name=\"com.google.android.gms.gcm.GcmReceiver\"\r\n      android:exported=\"true\"\r\n      android:permission=\"com.google.android.c2dm.permission.SEND\">\r\n      <intent-filter>\r\n        <action android:name=\"com.google.android.c2dm.intent.RECEIVE\"/>\r\n        <action android:name=\"com.google.android.c2dm.intent.REGISTRATION\"/>\r\n\r\n        <category android:name=\"com.rate.rates\"/>\r\n      </intent-filter>\r\n    </receiver>\r\n\r\n    <service\r\n      android:name=\".gcm.ExponentGcmListenerService\"\r\n      android:exported=\"false\">\r\n      <intent-filter>\r\n        <action android:name=\"com.google.android.c2dm.intent.RECEIVE\"/>\r\n      </intent-filter>\r\n    </service>\r\n    <service\r\n      android:name=\".gcm.ExponentInstanceIDListenerService\"\r\n      android:exported=\"false\">\r\n      <intent-filter>\r\n        <action android:name=\"com.google.android.gms.iid.InstanceID\"/>\r\n      </intent-filter>\r\n    </service>\r\n    <service\r\n      android:name=\".gcm.RegistrationIntentService\"\r\n      android:exported=\"false\">\r\n    </service>\r\n\r\n    <!-- ImagePicker native module -->\r\n    <activity\r\n      android:name=\"com.theartofdev.edmodo.cropper.CropImageActivity\"\r\n      android:theme=\"@style/Base.Theme.AppCompat\">\r\n    </activity>\r\n\r\n    <meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />\r\n    <!-- ADD FABRIC CONFIG HERE -->\r\n    <!-- BEGIN FABRIC CONFIG -->\r\n    <meta-data\r\n      android:name=\"io.fabric.ApiKey\"\r\n      android:value=\"###\"/>\r\n    <!-- END FABRIC CONFIG -->\r\n\r\n    <!-- ADD GOOGLE MAPS CONFIG HERE -->\r\n    <!-- BEGIN GOOGLE MAPS CONFIG -->\r\n    <meta-data\r\n      android:name=\"com.google.android.geo.API_KEY\"\r\n      android:value=\"###\"/>\r\n    <!-- END GOOGLE MAPS CONFIG -->\r\n\r\n    <!-- ADD BRANCH CONFIG HERE -->\r\n\r\n    <!-- The Facebook SDK runs FacebookInitProvider on startup and crashes if there isn't an ID here -->\r\n    <meta-data android:name=\"com.facebook.sdk.ApplicationId\" android:value=\"fb0\"/>\r\n  </application>\r\n\r\n</manifest>\r\n\r\n```\r\n<!--\r\n  SEARCH EXISTING ISSUES FOR AN ANSWER: https://goo.gl/pspQNY\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/comments/397167522","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/546#issuecomment-397167522","issue_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/546","id":397167522,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzE2NzUyMg==","user":{"login":"yirui94","id":13990158,"node_id":"MDQ6VXNlcjEzOTkwMTU4","avatar_url":"https://avatars1.githubusercontent.com/u/13990158?v=4","gravatar_id":"","url":"https://api.github.com/users/yirui94","html_url":"https://github.com/yirui94","followers_url":"https://api.github.com/users/yirui94/followers","following_url":"https://api.github.com/users/yirui94/following{/other_user}","gists_url":"https://api.github.com/users/yirui94/gists{/gist_id}","starred_url":"https://api.github.com/users/yirui94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yirui94/subscriptions","organizations_url":"https://api.github.com/users/yirui94/orgs","repos_url":"https://api.github.com/users/yirui94/repos","events_url":"https://api.github.com/users/yirui94/events{/privacy}","received_events_url":"https://api.github.com/users/yirui94/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T04:34:25Z","updated_at":"2018-06-14T04:34:25Z","author_association":"NONE","body":"Hi @Nightsd01, updating `react-native-onesignal/android/build.gradle` versions to API 26 got it to work! The app is up and running on Android Studio! Here are the steps I took for anyone else that may encounter the same issues:\r\n\r\n1. `npm install`\r\n2. `exp detach`\r\n3. `npm install --save react-native-onesignal`\r\n4. `react-native link react-native-onesignal`\r\n5.  Update `AndroidManifest.xml` `android:launchMode=\"singleTop\"`\r\n6.  Update `app/build.gradle` to add gradle plugin & `compileSdkVersion` 26 and `buildToolsVersion` 26.0.1\r\n7.  Open top level `build.gradle` and make sure `com.android.tools.build:gradle` is 2.3.3\r\n8.  Open `gradle-wrapper.properties` and make sure distributionUrl is\r\n```distributionUrl=https\\://services.gradle.org/distributions/gradle-3.3-all.zip```\r\n8. Open `react-native-onesignal/android/build.gradle`  and change these two lines\r\n```\r\ncompileSdkVersion safeExtGet('compileSdkVersion', 26)\r\nbuildToolsVersion safeExtGet('buildToolsVersion', '26.0.1')\r\n```\r\n7.  Sync, clean, build and run in Android Studio (with Android Device)\r\n\r\nI'm closing the issue since it's fixed but now I can't get notifications through to my device 😱 \r\n"}}
{"actor":{"display_login":"yirui94"}}