react-native-device-info crash the app on android
I'm using react-native-device-info library in react-native. I've used it for about a year without problems, but since the last two weeks the app on Android crashes because of this library.
I get an error as follows:
They discussed about this issue here. And they explanation is as follows:
Unable to merge dex / Multiple dex files / Problems with
com.google.android.gms
react-native-device-info uses
com.google.android.gms:play-services-gcm to provide
[getInstance()][#getinstance]. This can lead to conflicts when
building the Android application.
If you're using a different version of
com.google.android.gms:play-services-gcm in your app, you can define
the googlePlayServicesVersion gradle variable in your build.gradle
file to tell react-native-device-info what version it should require.
If you're using a different library that conflicts with
com.google.android.gms:play-services-gcm, you can simply ignore this
dependency in your gradle file:
compile(project(':react-native-device-info')) {
exclude group: 'com.google.android.gms'
}
I've tried to add that code to build.gradle
but nothing happens, the sam problem.
I'm not sure how to solve it. Any idea?
android reactjs react-native
add a comment |
I'm using react-native-device-info library in react-native. I've used it for about a year without problems, but since the last two weeks the app on Android crashes because of this library.
I get an error as follows:
They discussed about this issue here. And they explanation is as follows:
Unable to merge dex / Multiple dex files / Problems with
com.google.android.gms
react-native-device-info uses
com.google.android.gms:play-services-gcm to provide
[getInstance()][#getinstance]. This can lead to conflicts when
building the Android application.
If you're using a different version of
com.google.android.gms:play-services-gcm in your app, you can define
the googlePlayServicesVersion gradle variable in your build.gradle
file to tell react-native-device-info what version it should require.
If you're using a different library that conflicts with
com.google.android.gms:play-services-gcm, you can simply ignore this
dependency in your gradle file:
compile(project(':react-native-device-info')) {
exclude group: 'com.google.android.gms'
}
I've tried to add that code to build.gradle
but nothing happens, the sam problem.
I'm not sure how to solve it. Any idea?
android reactjs react-native
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41
add a comment |
I'm using react-native-device-info library in react-native. I've used it for about a year without problems, but since the last two weeks the app on Android crashes because of this library.
I get an error as follows:
They discussed about this issue here. And they explanation is as follows:
Unable to merge dex / Multiple dex files / Problems with
com.google.android.gms
react-native-device-info uses
com.google.android.gms:play-services-gcm to provide
[getInstance()][#getinstance]. This can lead to conflicts when
building the Android application.
If you're using a different version of
com.google.android.gms:play-services-gcm in your app, you can define
the googlePlayServicesVersion gradle variable in your build.gradle
file to tell react-native-device-info what version it should require.
If you're using a different library that conflicts with
com.google.android.gms:play-services-gcm, you can simply ignore this
dependency in your gradle file:
compile(project(':react-native-device-info')) {
exclude group: 'com.google.android.gms'
}
I've tried to add that code to build.gradle
but nothing happens, the sam problem.
I'm not sure how to solve it. Any idea?
android reactjs react-native
I'm using react-native-device-info library in react-native. I've used it for about a year without problems, but since the last two weeks the app on Android crashes because of this library.
I get an error as follows:
They discussed about this issue here. And they explanation is as follows:
Unable to merge dex / Multiple dex files / Problems with
com.google.android.gms
react-native-device-info uses
com.google.android.gms:play-services-gcm to provide
[getInstance()][#getinstance]. This can lead to conflicts when
building the Android application.
If you're using a different version of
com.google.android.gms:play-services-gcm in your app, you can define
the googlePlayServicesVersion gradle variable in your build.gradle
file to tell react-native-device-info what version it should require.
If you're using a different library that conflicts with
com.google.android.gms:play-services-gcm, you can simply ignore this
dependency in your gradle file:
compile(project(':react-native-device-info')) {
exclude group: 'com.google.android.gms'
}
I've tried to add that code to build.gradle
but nothing happens, the sam problem.
I'm not sure how to solve it. Any idea?
android reactjs react-native
android reactjs react-native
asked Jun 26 '18 at 7:02
BokyBoky
3,99433876
3,99433876
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41
add a comment |
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41
add a comment |
1 Answer
1
active
oldest
votes
Change your app/build.gradle
dependencies to look like this:
dependencies {
...
compile project(':react-native-device-info')
compile('com.google.android.gms:play-services-gcm:11.8.0') {
force = true
}
}
If 11.8.0
doesn't work try to replace it with +
. The react-native-device-info
uses +
for it's com.google.android.gms:play-services-gcm
dependency.
UPDATE
If that doesn't work, do as suggested in the error message --> try adding def googlePlayServicesVersion = "11.8.0"
to your app/build.gradle
to force the version on react-native-device-info
. (You can change the version as you like)
Then change your dependencies to look like this:
dependencies {
...
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
If you take a look at their build.gradle
file, they handle their dependencies like this:
...
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
...
dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
UPDATE
(This is the solution that worked)
If that doesn't work, try changing your project level build.gradle
file to look like this (The repositories order is important):
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
The order of the repositories is important because if, for example, jcenter()
is first, and it will find the com.google.android.gms
package in there, it will retrieve those sources, and they might be the wrong ones. In your case, the maven {Google...}
element pointed to the sources you need, and this is why it had to be called before jcenter()
was used.
If I use11.8.0
I get the same error. If I replace it with+
I get an errorA problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use11.8.0
I get an error as follows> Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go tocd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have11.8.0
there. The newest is11.0.4
. But when I try with11.0.4
I get the same error as in the question.
– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using thereact-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabledmultidex
?
– HedeH
Jun 26 '18 at 9:13
The modifyingbuild.gradle
did the trick.multidex
is not enabled. Thanks
– Boky
Jun 26 '18 at 10:33
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51036749%2freact-native-device-info-crash-the-app-on-android%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Change your app/build.gradle
dependencies to look like this:
dependencies {
...
compile project(':react-native-device-info')
compile('com.google.android.gms:play-services-gcm:11.8.0') {
force = true
}
}
If 11.8.0
doesn't work try to replace it with +
. The react-native-device-info
uses +
for it's com.google.android.gms:play-services-gcm
dependency.
UPDATE
If that doesn't work, do as suggested in the error message --> try adding def googlePlayServicesVersion = "11.8.0"
to your app/build.gradle
to force the version on react-native-device-info
. (You can change the version as you like)
Then change your dependencies to look like this:
dependencies {
...
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
If you take a look at their build.gradle
file, they handle their dependencies like this:
...
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
...
dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
UPDATE
(This is the solution that worked)
If that doesn't work, try changing your project level build.gradle
file to look like this (The repositories order is important):
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
The order of the repositories is important because if, for example, jcenter()
is first, and it will find the com.google.android.gms
package in there, it will retrieve those sources, and they might be the wrong ones. In your case, the maven {Google...}
element pointed to the sources you need, and this is why it had to be called before jcenter()
was used.
If I use11.8.0
I get the same error. If I replace it with+
I get an errorA problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use11.8.0
I get an error as follows> Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go tocd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have11.8.0
there. The newest is11.0.4
. But when I try with11.0.4
I get the same error as in the question.
– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using thereact-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabledmultidex
?
– HedeH
Jun 26 '18 at 9:13
The modifyingbuild.gradle
did the trick.multidex
is not enabled. Thanks
– Boky
Jun 26 '18 at 10:33
|
show 1 more comment
Change your app/build.gradle
dependencies to look like this:
dependencies {
...
compile project(':react-native-device-info')
compile('com.google.android.gms:play-services-gcm:11.8.0') {
force = true
}
}
If 11.8.0
doesn't work try to replace it with +
. The react-native-device-info
uses +
for it's com.google.android.gms:play-services-gcm
dependency.
UPDATE
If that doesn't work, do as suggested in the error message --> try adding def googlePlayServicesVersion = "11.8.0"
to your app/build.gradle
to force the version on react-native-device-info
. (You can change the version as you like)
Then change your dependencies to look like this:
dependencies {
...
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
If you take a look at their build.gradle
file, they handle their dependencies like this:
...
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
...
dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
UPDATE
(This is the solution that worked)
If that doesn't work, try changing your project level build.gradle
file to look like this (The repositories order is important):
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
The order of the repositories is important because if, for example, jcenter()
is first, and it will find the com.google.android.gms
package in there, it will retrieve those sources, and they might be the wrong ones. In your case, the maven {Google...}
element pointed to the sources you need, and this is why it had to be called before jcenter()
was used.
If I use11.8.0
I get the same error. If I replace it with+
I get an errorA problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use11.8.0
I get an error as follows> Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go tocd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have11.8.0
there. The newest is11.0.4
. But when I try with11.0.4
I get the same error as in the question.
– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using thereact-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabledmultidex
?
– HedeH
Jun 26 '18 at 9:13
The modifyingbuild.gradle
did the trick.multidex
is not enabled. Thanks
– Boky
Jun 26 '18 at 10:33
|
show 1 more comment
Change your app/build.gradle
dependencies to look like this:
dependencies {
...
compile project(':react-native-device-info')
compile('com.google.android.gms:play-services-gcm:11.8.0') {
force = true
}
}
If 11.8.0
doesn't work try to replace it with +
. The react-native-device-info
uses +
for it's com.google.android.gms:play-services-gcm
dependency.
UPDATE
If that doesn't work, do as suggested in the error message --> try adding def googlePlayServicesVersion = "11.8.0"
to your app/build.gradle
to force the version on react-native-device-info
. (You can change the version as you like)
Then change your dependencies to look like this:
dependencies {
...
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
If you take a look at their build.gradle
file, they handle their dependencies like this:
...
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
...
dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
UPDATE
(This is the solution that worked)
If that doesn't work, try changing your project level build.gradle
file to look like this (The repositories order is important):
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
The order of the repositories is important because if, for example, jcenter()
is first, and it will find the com.google.android.gms
package in there, it will retrieve those sources, and they might be the wrong ones. In your case, the maven {Google...}
element pointed to the sources you need, and this is why it had to be called before jcenter()
was used.
Change your app/build.gradle
dependencies to look like this:
dependencies {
...
compile project(':react-native-device-info')
compile('com.google.android.gms:play-services-gcm:11.8.0') {
force = true
}
}
If 11.8.0
doesn't work try to replace it with +
. The react-native-device-info
uses +
for it's com.google.android.gms:play-services-gcm
dependency.
UPDATE
If that doesn't work, do as suggested in the error message --> try adding def googlePlayServicesVersion = "11.8.0"
to your app/build.gradle
to force the version on react-native-device-info
. (You can change the version as you like)
Then change your dependencies to look like this:
dependencies {
...
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
If you take a look at their build.gradle
file, they handle their dependencies like this:
...
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
...
dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
}
UPDATE
(This is the solution that worked)
If that doesn't work, try changing your project level build.gradle
file to look like this (The repositories order is important):
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
The order of the repositories is important because if, for example, jcenter()
is first, and it will find the com.google.android.gms
package in there, it will retrieve those sources, and they might be the wrong ones. In your case, the maven {Google...}
element pointed to the sources you need, and this is why it had to be called before jcenter()
was used.
edited Nov 13 '18 at 15:07
answered Jun 26 '18 at 7:29
HedeHHedeH
2,0031019
2,0031019
If I use11.8.0
I get the same error. If I replace it with+
I get an errorA problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use11.8.0
I get an error as follows> Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go tocd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have11.8.0
there. The newest is11.0.4
. But when I try with11.0.4
I get the same error as in the question.
– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using thereact-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabledmultidex
?
– HedeH
Jun 26 '18 at 9:13
The modifyingbuild.gradle
did the trick.multidex
is not enabled. Thanks
– Boky
Jun 26 '18 at 10:33
|
show 1 more comment
If I use11.8.0
I get the same error. If I replace it with+
I get an errorA problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use11.8.0
I get an error as follows> Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go tocd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have11.8.0
there. The newest is11.0.4
. But when I try with11.0.4
I get the same error as in the question.
– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using thereact-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabledmultidex
?
– HedeH
Jun 26 '18 at 9:13
The modifyingbuild.gradle
did the trick.multidex
is not enabled. Thanks
– Boky
Jun 26 '18 at 10:33
If I use
11.8.0
I get the same error. If I replace it with +
I get an error A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
If I use
11.8.0
I get the same error. If I replace it with +
I get an error A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+"
– Boky
Jun 26 '18 at 8:41
Updated my answer
– HedeH
Jun 26 '18 at 8:56
Updated my answer
– HedeH
Jun 26 '18 at 8:56
If I use
11.8.0
I get an error as follows > Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go to cd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have 11.8.0
there. The newest is 11.0.4
. But when I try with 11.0.4
I get the same error as in the question.– Boky
Jun 26 '18 at 9:03
If I use
11.8.0
I get an error as follows > Could not find com.google.android.gms:play-services-gcm:11.8.0.
. But If I go to cd ~/Library/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services
I see that I do not have 11.8.0
there. The newest is 11.0.4
. But when I try with 11.0.4
I get the same error as in the question.– Boky
Jun 26 '18 at 9:03
Updated my answer... I'm using the
react-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabled multidex
?– HedeH
Jun 26 '18 at 9:13
Updated my answer... I'm using the
react-native-device-info
lib and everything is working fine for me.. So I'm trying to understand what is done right on my side :) BTW, have you enabled multidex
?– HedeH
Jun 26 '18 at 9:13
The modifying
build.gradle
did the trick. multidex
is not enabled. Thanks– Boky
Jun 26 '18 at 10:33
The modifying
build.gradle
did the trick. multidex
is not enabled. Thanks– Boky
Jun 26 '18 at 10:33
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51036749%2freact-native-device-info-crash-the-app-on-android%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
have you done this ? react-native link react-native-device-info
– Pramod
Jun 26 '18 at 7:36
@Pramod Of course.
– Boky
Jun 26 '18 at 8:41