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

error in run android #9

Open
leonardgithub opened this issue Aug 21, 2016 · 4 comments
Open

error in run android #9

leonardgithub opened this issue Aug 21, 2016 · 4 comments

Comments

@leonardgithub
Copy link

leonardgithub commented Aug 21, 2016

I am really happy to see you project, but I encountered an error:
I execute "npm i" in root folder, and then execute the same command in the reactnative folder, and run "react-native run-android && react-native start", then error occurs:
https://github.com/xueduany/react-mix/blob/675b2e74d8f684d1f55a05e514d8c44a390f2c6c/reactnative/android/app/src/main/java/com/reactnative/MainActivity.java and https://github.com/xueduany/react-mix/blob/675b2e74d8f684d1f55a05e514d8c44a390f2c6c/reactnative/android/app/src/main/java/com/reactnative/MainActivity.java.
I do not remember the detailed error, it is probably "no such method".
BTW, it is RN 0.31 now, your code still use RN 0.21, could you update and catch the new version of RN? Thanks!

@leonardgithub
Copy link
Author

the error messages are below when run "react-native run-android"
:app:processDebugResources
Unknown source file : warning: string 'catalyst_debugjs' has no default translation.
Unknown source file : warning: string 'catalyst_element_inspector' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_error' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_message' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_title' has no default translation.
Unknown source file : warning: string 'catalyst_reloadjs' has no default translation.
Unknown source file : warning: string 'catalyst_settings' has no default translation.
Unknown source file : warning: string 'catalyst_settings_title' has no default translation.

:app:generateDebugSources
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac
/Volumes/leonard/0-computaciones/espacio/prueba/react-mix/reactnative/android/app/src/main/java/com/reactnative/MainActivity.java:192: error: cannot find symbol
mReactInstanceManager.onHostPause();
^
symbol: method onHostPause()
location: variable mReactInstanceManager of type ReactInstanceManager
/Volumes/leonard/0-computaciones/espacio/prueba/react-mix/reactnative/android/app/src/main/java/com/reactnative/MainActivity.java:206: error: cannot find symbol
mReactInstanceManager.onHostResume(this, new DefaultHardwareBackBtnHandler() {
^
symbol: method onHostResume(MainActivity,)
location: variable mReactInstanceManager of type ReactInstanceManager
2 errors
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • 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: 1 mins 58.958 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

@leonardgithub
Copy link
Author

react-native run-ios is OK

@asterisk622
Copy link

Has this project been maintained?

@leonardgithub
Copy link
Author

@asterisk622 Seems not for a long time.

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

2 participants