记两点错误reac-native

1.

 Execution failed for task ':app:processDebugResources'.

 java.io.IOException: Could not delete path 'E:\RN\demo\android\app\build\generated\source\r\debug\com\cboy\rn'.

解决办法:

cd android && gradlew clean

cd .. && react-native run-android

https://stackoverflow.com/questions/35674066/errorexecution-failed-for-task-appprocessdebugresources-java-io-ioexcept

2.

Exception while parsing the supplied manifest file E:\RN\demo\android\app\src\main\AndroidManifest.xml
> 与元素类型 "uses-permission" 相关联的属性 "Android:name" 的前缀 "Android" 未绑定。

解决办法

Android改写为android

3.

Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_
FAILED_UPDATE_INCOMPATIBLE: Package com.demo signatures do not match the previously installed version; ignoring!

解决办法

卸载手机或者模拟器的版本,正式版和debug版本不能同时在手机上展示。

 

posted @ 2017-08-20 17:24  红鲤鱼与绿鲤鱼与绿  阅读(392)  评论(0编辑  收藏  举报