1.Could not determine java version from '10.0.1'[MAC OSX High Sierra]
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Could not connect to development server. Ensure the following: - Node server is running and available on the same network - run 'npm start' from react-native root - Node server URL is correctly set in AppDelegate - WiFi is enabled and connected to the same network as the Node Server
解决方法
------------------------------------------------------------
Gradle 4.7
------------------------------------------------------------
Build time: 2018-04-18 09:09:12 UTC
Revision: b9a962bf70638332300e7f810689cb2febbd4a6c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 10.0.1 ("Oracle Corporation" 10.0.1+10)
OS: Mac OS X 10.13.4 x86_64
Please use Gradle >= 4.7
默认的gradle版本好像是3.5.1,只需要把版本改成大于4.7版本的就可以了
2.Failed to notify project evaluation listener
解决方法
这个问题一般是由本地java版本比较高造成的,最好是使用v8,v9和v10现在并不兼容支持
具体请看这里
3.Text strings must be rendered within a component
这个问题是有版本兼容问题导致的,具体解决办法 请看这里
- iOS - component works as drop-in replacement for standard
Text
component, e.g. it is possible to have nested gradients; - Android - currently only basic 'wrapper'-like behavior without nesting is supported, WIP;
- React-Native:
- with rn >= 0.56.0 use latest version and patch;
- with rn >= 0.55.0 use 0.0.9;
- with rn >= 0.54.0 use 0.0.7;
- with rn >= 0.53.1 use 0.0.4;
- rn 0.53.0 is not supported;
- with rn >= 0.50.0 use 0.0.3.
3.CompileC /Users/yunzhaoliu/Desktop/abc/myApp/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/RCTConvert+AirMap.o AirMaps/RCTConvert+AirMap.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
这个问题具体是怎么出现的也不是很清楚,但是解决办法很简单
解决方法
删除ios/build文件夹,然后重新运行,具体请看这里