1. Error:Execution failed for task ':app:processDebugResources'
> java.io.IOException: Could not delete path C:\Users\ehsan\AndroidStudioProjects\MyApplication3\app\...
直观上看是没有删除某个文件,产生的IOException异常,实际上是因为上次编译导致的缓存没有清空导致的。
进入到android目录下运行下面代码清除上次打包时的缓存:
gradlew.bat clean
或者:
.\gradlew clean
-----------------------------------------------------------------------------------------------------------------------------------------
2. React Native:The development server returned response error code: 404 || version mismatch
或 ::ffff:127.0.0.1 - - [15/May/2018:09:49:13 +0000] "GET /index.android.delta?platform=android&dev=true&minify=false HTTP/1.1" 404 79 "-" "okhttp/3.6.0"
解决方法:
打开android/app/build.gradle
compile 'com.facebook.react:react-native:+'
修改为:
compile ("com.facebook.react:react-native:0.47.1") { force = true }
0.47.1替换你自己的react-native版本号
新版本的gradle 不锁定react-natvie版本导致的