Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path 'react-native-cordova' could not be found [Android] #2

Open
natterstefan opened this issue Nov 13, 2017 · 2 comments
Open

Path 'react-native-cordova' could not be found [Android] #2

natterstefan opened this issue Nov 13, 2017 · 2 comments

Comments

@natterstefan
Copy link

I followed the instructions for Android in the README and got the following when I installed it on a Device (with react-native run android)

FAILURE: Build failed with an exception.

* Where:
Build file '(..)/node_modules/@remobile/react-native-battery-status/android/build.gradle' line: 25

* What went wrong:
A problem occurred evaluating project ':react-native-battery-status'.
> Project with path ':react-native-cordova' could not be found in project ':react-native-battery-status'.
@495640129
Copy link

我也是遇到了同样的问题,期待解答
I also encountered the same problem, looking forward to the solution.

@peacechen
Copy link

This library depends on react-native-cordova:
https://github.com/remobile/react-native-battery-status/search?utf8=%E2%9C%93&q=react-native-cordova&type=

It should be included in the package.json's dependencies. This might be solved manually by adding that dependency to your project's package.json.

fermuch pushed a commit to fermuch/react-native-battery-status that referenced this issue Dec 29, 2018
Updated response of onBatteryStatus()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants