ReactNative 问题处理记录

运行报app:compileDebugJavaWithJavac

有时候是因为node_modules 里面的某模块 build.gradle 配置和 android - build.gradle的配置不一致导致的。

运行报Could not be determined from the '12.0.1 Java version.

android - build.gradle 修改为4.10版本

task wrapper(type: Wrapper) {
    gradleVersion = '4.10'
    distributionUrl = distributionUrl.replace("bin", "all")
}

android - gradle - wrapper - gradle-wrapper.properties

	distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

react-native-http-cache 报错,修改node_modules文件夹

//FileCache cache1 = ImagePipelineFactory.getInstance().getMainDiskStorageCache();
FileCache cache1 = ImagePipelineFactory.getInstance().getMainFileCache();

//FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageDiskStorageCache();
FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageFileCache();