Closed dengwei729 closed 5 years ago
has try command below, not work
yarn clean
yarn cache clean
rm -rf node_modules/ && yarn
It looks like you are using an older version of React Native. Please update to the latest release, v0.59 and verify if the issue still exists.
@react-native-bot
find react-native.jar from node_modules firstly, if not, find from the maven;
Why find react-native.jar, there\s not react-native.jar yet。 There is only react-native.aar in node_modules or maven.
allprojects {
repositories {
mavenLocal()
jcenter()
maven { url "http://mvnrepo.alibaba-inc.com/mvn/repository" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
// ADD THIS
maven { url 'https://maven.google.com' }
// ADD THIS
maven { url "https://jitpack.io" }
}
}
@dengwei729 could you please try to below setup
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
// ADD THIS
maven { url 'https://maven.google.com' }
// ADD THIS
maven { url "https://jitpack.io" }
maven { url "http://mvnrepo.alibaba-inc.com/mvn/repository" }
}
}
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
@dengwei729 Have you solved the problem yet? If so, how did you do it.
Likewise
🐛 Bug Report
there is not react-native.jar since react-native ver 0.29
To Reproduce
100%
Expected Behavior
build sucessfully
Code Example
Environment