Closed Ebraheemb closed 6 years ago
Fixed
After many tries, I changed the dependency
from: implementation 'com.onesignal:OneSignal:[3.8.3,4.0.0)'
to: implementation 'com.onesignal:OneSignal:[3.8.3, 3.99.99]'
I don't know why this happens.
in case of "implementation 'com.onesignal:OneSignal:[3.8.3,4.0.0)'" I get this error:
in case of "implementation 'com.onesignal:OneSignal:[3.8.3, 3.99.99]'" I get something like this :
Using [3.8.3,4.0.0)
will cause gradle to pull in 4.0.0-SNAPSHOT versions if you including the snapshot repo which I see you have
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
Using [3.8.3, 3.99.99]
ensures a 4.0.0 version is never fetched.
Hi I'm trying to get OneSignal user id, but I get this error: {"errors":["app_id not found. You may be missing a Content-Type: application/json header."]}
This is the prompt error:![whatsapp image 2018-04-30 at 15 07 45](https://user-images.githubusercontent.com/12219367/39429012-337b6064-4c92-11e8-8e8d-b1ef7caf996d.jpeg)
This is my build.gradle: `apply plugin: 'com.android.application' apply plugin: 'realm-android'
buildscript { repositories { maven { url 'https://plugins.gradle.org/m2/'} } dependencies { classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.8.1' } } apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories { maven { url 'https://maven.google.com' } }
android { compileSdkVersion 27 buildToolsVersion '27.0.3' defaultConfig {
}
repositories { maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' } maven { url "https://jitpack.io" } maven { url "https://jitpack.io" } maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url 'https://maven.fabric.io/public' } jcenter() google() maven { url 'https://maven.google.com' } }
def supportVirsion = '27.1.1' def playServicesVirsion = '12.0.0'
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation 'com.github.bumptech.glide:glide:3.7.0' implementation'com.facebook.stetho:stetho:1.5.0' implementation 'com.uphyca:stetho_realm:2.1.0' implementation 'org.greenrobot:eventbus:3.1.1' implementation 'com.greysonparrelli.permiso:permiso:0.3.0'
}
`
this is my maniefist:
`<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="xxxxxxxxx">
`