Closed uvishere closed 5 years ago
Please use master instead of NPM release. The NPM release is currently a bit out of date, which is why if you follow the reader for master, things will not work for the NPM release.
We already got an issue to publish to NPM, so closing.
Hi @kristfal , I tried following things:
FYI, here's the build.gradle file section where the versions are defined:
Since the problem is not solved yet, I request you the re-open the issue. Thanks.
compileSdkVersion and supportLibVersion should be the same, in this case supportLibVersion should be "28.0.0"
Hi @sfratini thanks for the reply. I tried that as well but still no luck. Is it possibly something with the version of JDK?
Usually these cases mean that you have a lacking repository URL or any other dependency in your project build.gradle. So mostly related to your Android setup and not the repo itself.
Try running "gradlew clean assembleDebug" from the command line
same problem here, I tried proposed solutions, but no success.
same problem here, I tried proposed solutions, but no success.
Most likely an Android project setup and not related to the repo, if you actually have the same issues it is telling about the library not being found. That usually means the repo is not setup in gradle file or that you are using an incompatible wrapper.
If any of you still have this issue, try master branch. If that does not work, open a new one and post your app build.gradle, project build.gradle, wrapper.properties file and the output when you run "gradle clean assembleDebug". NOT run-android. That does more stuff that won't be related to this issue and will only delay the start of the app.
I'm getting the same issue as well with no luck from any of the solutions posted here.
Output of gradle clean assembleDebug
: https://haste.aetheryx.xyz/heyejunuwu.coffeescript
App build.gradle: https://haste.aetheryx.xyz/peyazaquye.rb
Project build.gradle: https://haste.aetheryx.xyz/aqodovavud.cs
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
I'm a beginner to React Native, so apologies if I'm missing anything.
I'm getting the same issue as well with no luck from any of the solutions posted here.
Output of
gradle clean assembleDebug
: https://haste.aetheryx.xyz/heyejunuwu.coffeescript App build.gradle: https://haste.aetheryx.xyz/peyazaquye.rb Project build.gradle: https://haste.aetheryx.xyz/aqodovavud.cs gradle-wrapper.propertiesdistributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
I'm a beginner to React Native, so apologies if I'm missing anything.
Try adding this in the allRepositories i the projecy build.gradle
maven {
url 'https://maven.google.com'
}
I fix this by changing the gradle version in this post
com.android.tools.build:gradle:3.3.0
to com.android.tools.build:gradle:3.2.1
I had the same problems with Android Studio after installing this package from npm. I installed from the master branch as suggested and then re-imported the project and was able to build without errors from mapbox.
@kristfal Thank you for the note regarding the outdated npm package. Downgrading the gradle version works, but installing from the master branch is a better solution.
@podoglyph how to install from master branch. can you please help me ?
@ansarikhurshid786 This is now part of the README
yes got it i didnt check on README.
npm install https://github.com/nitaliano/react-native-mapbox-gl/tarball/master
I'm trying to install mapbox in a fresh react native installation following the official Android Installation Guide. I'm getting error while trying to build the application with @mapbox/react-native-mapbox-gl installed.
Steps to reproduce
npm install --save @mapbox/react-native-mapbox-gl
react-native link
or followed the process manually as given in the installation guide.react-native run-android
, a long list of weird message appears as below:info JS server already running. info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
FAILURE: Build failed with an exception.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
Is it something wrong with java version? I tried changing the versions in
build.gradle
file, but there was no luck. Anyone having similar issue??