React-native

react-native-linear-gradient bu

2018-09-14  本文已影响0人  ziqiDev

Android build failed

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred evaluating project ':react-native-linear-gradient'.

> Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Solution:

Fixed by changing version of react-native-liniear-gradient in packages.json to "2.4.0"

上一篇下一篇

猜你喜欢

热点阅读