react-native icon indicating copy to clipboard operation
react-native copied to clipboard

react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java:133 miss contanst

Open lam-bun opened this issue 11 years ago • 4 comments

hi react-native, thanks for read when I clone the react-native project, after setup my env(sdk,ndk....) then I run 'npm install' and './gradlew :Examples:UIExplorer:android:app:installDebug' I found the error like this:

.............. bi-v7a/libreactnativejni.so [x86] StaticLibrary : libreactnative.a [x86] SharedLibrary : libreactnativejni.so [x86] Install : libreactnativejni.so => /Users/lam/Documents/develop/react-native/react-native/ReactAndroid/build/react-ndk/all/x86/libreactnativejni.so make: Leaving directory `/Users/lam/Documents/develop/react-native/react-native/ReactAndroid/src/main/jni/react/jni' :ReactAndroid:packageReactNdkLibs :ReactAndroid:processReleaseJavaRes UP-TO-DATE :ReactAndroid:compileReleaseJavaWithJavac /Users/lam/Documents/develop/react-native/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java:133: 错误: 找不到符号 Systrace.isTracing(Systrace.TRACE_TAG_REACT_APPS) ? "true" : "false"); ^ 符号: 变量 TRACE_TAG_REACT_APPS 位置: 类 Systrace 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 1 个错误 :ReactAndroid:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':ReactAndroid:compileReleaseJavaWithJavac'.

    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

plz told me where am I miss??

lam-bun avatar Nov 26 '15 08:11 lam-bun

Hey coderlin, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!

facebook-github-bot avatar Nov 26 '15 08:11 facebook-github-bot

Hi @coderlin,

Just workaround !!

Edit CatalystInstanceImpl.java file line 133. Replace Systrace.TRACE_TAG_REACT_APPS constant with Systrace.TRACE_TAG_REACT_JAVA_BRIDGE

good luck.

lashad avatar Nov 26 '15 10:11 lashad

This should be fixed in master.

ide avatar Nov 26 '15 11:11 ide

thx @lashad @ide I will pull down and try again

lam-bun avatar Nov 27 '15 01:11 lam-bun