我在 react-native-cli 的 react-native 中 运行 有问题
i have a problem to run in react-native by react-native-cli
无法检测包含的版本的 AGP 版本。构建中的所有项目都应使用相同的 AGP 版本。 Class 包含的构建对象的名称:
org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated. unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level. unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}api-level> Checking the license for package Android SDK Build-Tools 30.0.2 in C:\Users\taha\AppData\Local\Android\Sdk\licenses License for package Android SDK Build-Tools 30.0.2 accepted. Preparing "Install Android SDK Build-Tools 30.0.2 (revision: 30.0.2)"
.
这是我们无法控制的 AGP 警告。忽略此警告是安全的。 Gradle 内部发生了一些变化,导致 AGP 中的检查失败。它在 AGP 7.1(以及之后的版本)中得到修复,因此它将在 RN 0.69 中消失。
目前您可以放弃此警告。
无法检测包含的版本的 AGP 版本。构建中的所有项目都应使用相同的 AGP 版本。 Class 包含的构建对象的名称:
org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated. unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}vendor>,<{}codename>,<{}abi>,<{}api-level>,<{}tag> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level. unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}api-level> Checking the license for package Android SDK Build-Tools 30.0.2 in C:\Users\taha\AppData\Local\Android\Sdk\licenses License for package Android SDK Build-Tools 30.0.2 accepted. Preparing "Install Android SDK Build-Tools 30.0.2 (revision: 30.0.2)"
.
这是我们无法控制的 AGP 警告。忽略此警告是安全的。 Gradle 内部发生了一些变化,导致 AGP 中的检查失败。它在 AGP 7.1(以及之后的版本)中得到修复,因此它将在 RN 0.69 中消失。 目前您可以放弃此警告。