Open gaoxinxiao opened 2 months ago
翻墙问题
./gradlew generateAutolinkingPackageList
Task :app:generateAutolinkingPackageList FAILED
FAILURE: Build failed with an exception.
RNGP - Autolinking: Could not find project.android.packageName in react-native config output! Could not autolink packages without this field. 目前又有这个错误了
官方确认的bug,会在0.75.3中修复(尚未发布)
这里有一个临时解决办法 https://github.com/facebook/react-native/issues/46134#issuecomment-2323674786
创建react-native.config.js文件,里面添加packageName
module.exports = {
project: {
ios: {},
android: {
packageName: 'com.awesomeproject', // 你的项目的安卓包名
},
},
};
AILURE: Build failed with an exception.
What went wrong: Execution failed for task ':gradle-plugin:shared:compileKotlin'.
Try:
BUILD FAILED in 17s error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':gradle-plugin:shared:compileKotlin'.