react-native android assembleDebug日志:未知源文件:警告:字符串'catalyst_debugjs'没有默认的翻译

时间:2016-01-28 00:49:11

标签: android gradle react-native

测试新的react-native项目:react-native init

react-native run-android log:

...
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest
: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
...

虽然构建成功,但这个警告让我发疯,任何想法?

RN:v0.18.1 操作系统:Mac 10.11.3

谢谢!

1 个答案:

答案 0 :(得分:6)

通过更新build.gradle文件中的构建gradle版本来消除警告。

更改

classpath 'com.android.tools.build:gradle:1.3.1'

classpath 'com.android.tools.build:gradle:1.5.0'