无法 运行 在模拟器上使用 运行-android 反应本机应用程序

Cant run react-native app with run-android on emulator

所以我正在尝试 运行 在我的终端上使用 react-native,但我不断收到不同的错误并想知道发生了什么,我不断修复,然后不断出现更多错误,但我遇到的最新错误faced 是关于我的 react-native-track-player 和我在我的 package.json

中使用 github 的
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

使用“--warning-mode all”显示个别弃用警告。 参见 https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

失败:构建失败,出现异常。

Could not resolve all artifacts for configuration ':react-native-track-player:classpath'. Could not resolve com.android.tools.build:gradle:3.4.2. Required by: project :react-native-track-player > Could not resolve com.android.tools.build:gradle:3.4.2. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'. > Connect to dl.google.com:443 [dl.google.com/172.217.20.142] failed: Connection timed out: connect

dl.google.com 在某些国家/地区被阻止! 尝试

1) Used a proxy and defined the variables http_proxy and http_proxy on the terminal.

2) Then run the "react-native run-android".

你应该重新安装调试。

cd android
./gradlew.bat installDebug

然后再次运行。