react-native-fabric: New build errors (lint-gradle-api.jar)
Started to get these build errors today. Previously have had no problems and have not made changes to native code recently.
Anyone else had the same issue?
> Could not resolve all files for configuration ':react-native-fabric:classpath'.
> Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar```
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 26
- Comments: 30 (1 by maintainers)
Commits related to this issue
- Added google() fix for lint exception Fix for https://github.com/corymsmith/react-native-fabric/issues/200 — committed to AkshayBaldia/react-native-fabric by AkshayBaldia 6 years ago
mover jcenter() below google()
Could this be released asap? Makes it hard to make builds when changes are needed in node_modules
Any plans for releasing fixed version?
Did you make this changes in your project @ronilitman ? This should be made in react-native-fabric package which is already in master. I couldn’t make it work changing own project dependencies order.
"react-native-fabric": "github:corymsmith/react-native-fabric#523a4edab3b2bf55ea9eeea2cf0dde82c5c29dd4",should workAny described solution don`t work for me.
yarn add react-native-fabric@0.5.2- Noyarn add http://github...- Noyarn add react-native-fabric@0.5.1- Can’t releaseI found only one way to resolve issue:
And edit config: (editing own gradle doesn’t help at all)
There is no need for PR @vadimshvetsov , current master has a fix and just have to be released.
I’m able to fix it by adding following config in
android/build.gradleYou can override this setting in your root project build.gradle (the one in your android/ folder, not android/app/). I’m no Gradle expert, but if you don’t want to edit your node_module build.gradle, here’s an extract of my root build.gradle :
This break started with v0.5.2, I know some folks are waiting for new version to be fixed but if you target v0.5.1 like docs recommend, it works fine.
google() was msising in react-native-fabric build.gradle
Can the fix be released to master please?
At this moment there is an opened pull request. I hope it would help.
Thanks @chrusart, this worked for us.
@sibelius The changes made in this commit do not appear when installing the latest version (0.5.2)? 🤔