注意:错误可能会有所不同,但如果您在过去两天没有对代码进行任何更改的情况下进行 Android 构建时遇到任何错误
我的错误 - 无法安装应用程序。错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081
error Failed to install the app. Make sure you have the Android development environment set up:
Error: Command failed: ./gradlew app:installDebug
-PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where: Build file '/Users/....../node_modules/react-native-month-year-picker/android/build.gradle' line: 115
* What went wrong: A problem occurred configuring project ':react-native-month-year-picker'.
> Could not resolve all files for configuration ':react-native-month-year-picker:implementation'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :react-native-month-year-picker
> Cannot choose between the following variants of com.facebook.react:react-native:0.71.0-rc.0: …Run Code Online (Sandbox Code Playgroud) 这是我从 Google Play 收到的电子邮件。我添加了QUERY ALL PACKAGES向清单文件添加了权限,以便所有功能都能在 Android 11 或更高版本中正常运行。但实际上,我只需要部分权限来实现这些功能。那么,如果撤回“QUERY ALL PACKAGES”权限,并在manifest文件中添加另一个核心权限,我们还需要提交权限声明吗?
\n\n开发者更新
\n您好 Google Play 开发者,
\n如果您的应用需要 QUERY_ALL_PACKAGES 权限,\n您需要在 7 月 20 日之前在 Play 管理中心提交声明表。否则,\n您将无法提交新应用或应用更新。
\n需要采取的行动:
\n\n
\n- 如果您的应用不需要使用 QUERY_ALL_PACKAGES 权限,则必须从应用清单中删除该权限。
\n- 如果您的应用需要使用 QUERY_ALL_PACKAGES 权限,则您\xe2\x80\x99 将需要提供应用中需要此权限的核心功能的说明和简短视频。要准备\n您\xe2\x80\x99 需要回答的问题,请查看此帮助中心文章。
\n您必须在 7 月 20 日之前提交声明或从您的应用清单中删除\n权限。自 7 月 20 日起,不符合政策\n要求或未提交声明表的应用可能会从\nGoogle Play 中删除。
\n感谢您继续与我们合作,让 Google Play 成为您和您的用户\n的安全平台。
\n谢谢你,
\nGoogle Play 团队
\n
android google-play android-permissions react-native google-play-console