测试一个新的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
谢谢!
通过更新build.gradle文件中的构建gradle版本来消除警告.
原文链接:https://www.f2er.com/react/301053.html更改
classpath 'com.android.tools.build:gradle:1.3.1'
至
classpath 'com.android.tools.build:gradle:1.5.0'