alexmngn / react-native-authentication

492 stars 156 forks source link

react-native run-android fails #2

Closed m3ndis closed 7 years ago

m3ndis commented 7 years ago
mendi@mendi:~/Desktop/react-native-authentication/client/MobileApp$ react-native run-android
Starting JS server...
Running /home/mendi/Android/Sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && ./gradlew installDebug...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Cannot evaluate module react-native-vector-icons : Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.534 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

To fix this and add react-native-vector-icons to dependencies please run: npm install react-native-vector-icons --save

alexmngn commented 7 years ago

That's a funny issue, I cannot reproduce it. Which version of NPM do you use?

m3ndis commented 7 years ago

I think it was 2.x, I'm not sure, but this dependency surely was not in the package.json

On Dec 14, 2016 06:53, "Alexis" notifications@github.com wrote:

That's a funny issue, I cannot reproduce it. Which version of NPM do you use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexmngn/react-native-authentication/issues/2#issuecomment-266942423, or mute the thread https://github.com/notifications/unsubscribe-auth/ANwI6jbxdosZXFlCkx3m2Nz0oBFaDjfiks5rH3ZAgaJpZM4LKcLv .

alexmngn commented 7 years ago

No it's not, react-native-vector-icons is a dependency of native-base and not of this project, that's why it's not present in the package.json. I've only tested the project with npm 3.8.x and I don't plan to make it work with older versions of npm.

vldgeorgiev commented 7 years ago

@alexmngn Hi. I have another problem with the vector-icons. The package is not missing, but it produces errors about missing drawable resources. Below is one of the errors, but there are 20-30 like that. Could that be a different package version?

C:\Users\User\Documents\Projects\SC\__react-native-authentication-master\client\MobileApp\node_modules\react
-native-vector-icons\android\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\res\drawable\abc_t
extfield_search_material.xml:21:29-78 : No resource found that matches the given name (at 'drawable' with value '@drawab
le/abc_textfield_search_default_mtrl_alpha').

:react-native-vector-icons:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-vector-icons:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Andro
id\sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
alexmngn commented 7 years ago

@vldgeorgiev Looks like an issue with Windows. Did you have a look to this post? https://github.com/oblador/react-native-vector-icons/issues/102

vldgeorgiev commented 7 years ago

Now that you mentioned Windows, I had a better look at the path length. It is longer than 255 chars, which causes issues on Windows. Moving the project to a shorter path fixes it.

NikDhameliya commented 7 years ago

Hi, I have faced the error on vector-icons and I use Ubuntu 16.4.

:react-native-vector-icons:processReleaseResources /home/nikunj/Android/Sdk/build-tools/26.0.1/aapt: 1: /home/nikunj/Android/Sdk/build-tools/26.0.1/aapt: Syntax error: ")" unexpected

:react-native-vector-icons:processReleaseResources FAILED

FAILURE: Build failed with an exception.