react-native
华为手机 5.1 Android 系统
创建一个新的项目 react-native init 项目名
真机调试
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
在你的项目下 找到 android/build.gradle
classpath 'com.android.tools.build:gradle:2.2.3' 2.2.3 修改为1.2.3
运行 react-native run-android
出现错误 根据提示
android/gradle-wrapper.properties 中
改为
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
2.14.1 改为 2.2
运行react-native run-android
出现错误提示
React-native build error: Execution failed for task ':react-native-maps:prepareComAndroidSupportAppcompatV72301Library'. > Could not expand ZIP
华为手机 5.1 Android 系统
创建一个新的项目 react-native init 项目名
真机调试
直接运行 react-native run-android
出现错误com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
在你的项目下 找到 android/build.gradle
classpath 'com.android.tools.build:gradle:2.2.3' 2.2.3 修改为1.2.3
运行 react-native run-android
出现错误 根据提示
android/gradle-wrapper.properties 中
改为
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
2.14.1 改为 2.2
运行react-native run-android
出现错误提示
React-native build error: Execution failed for task ':react-native-maps:prepareComAndroidSupportAppcompatV72301Library'. > Could not expand ZIP