diff --git a/android/build.gradle b/android/build.gradle
index e156841..346ffce 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,6 +1,11 @@
apply plugin: 'com.android.library'
android {
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
+ if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
+ namespace "com.rollbar"
+ }
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : 27
buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : "27.0.3"
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index e92e8a0..e863577 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1,6 +1,2 @@
-
-
-
-
+
\ No newline at end of file