facebook / metro

πŸš‡ The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.25k stars 626 forks source link

Could not determine the dependencies of task ' :react-native-gesture-handler:generateDebugRFile' #1177

Closed iamodreck closed 10 months ago

iamodreck commented 10 months ago

After installing packages related to react native navigation, am trying to launch my app but build fails on the error above. Could anybody be having a clue on how to solve it.

Below, I've added a comment containing the log file

iamodreck commented 10 months ago

BKA@0.0.1 start
react-native start

info Welcome to React Native v0.73 info Starting dev server on port 8081...

                    β–’β–’β–“β–“β–“β–“β–’β–’
                 β–’β–“β–“β–“β–’β–’β–‘β–‘β–’β–’β–“β–“β–“β–’
              β–’β–“β–“β–“β–“β–‘β–‘β–‘β–’β–’β–’β–’β–‘β–‘β–‘β–“β–“β–“β–“β–’
             β–“β–“β–’β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–’β–’β–“β–“
             β–“β–“β–‘β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–’β–‘β–‘β–‘β–’β–’β–‘β–‘β–‘β–’β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–’β–’β–’β–’β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–’β–‘β–‘β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“
              β–’β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–“β–’
                 β–’β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–’
                    β–’β–’β–“β–“β–“β–“β–’β–’

            Welcome to Metro v0.80.2
          Fast - Scalable - Integrated

info Dev server ready

i - run on iOS a - run on Android d - open Dev Menu r - reload app

info Opening app on Android... info A dev server is already running for this project on port 8081. info Launching emulator... info Installing the app...

Task :gradle-plugin:compileKotlin UP-TO-DATE Task :gradle-plugin:compileJava NO-SOURCE Task :gradle-plugin:pluginDescriptors UP-TO-DATE Task :gradle-plugin:processResources UP-TO-DATE Task :gradle-plugin:classes UP-TO-DATE Task :gradle-plugin:jar UP-TO-DATE Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

Configure project :react-native-reanimated Android gradle plugin: 8.1.1 Gradle: 8.3 Warning: Failed to download any source lists!

Warning: IO exception while downloading manifest: Warning: IO exception while downloading manifest: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:579) at java.base/sun.nio.ch.Net.connect(Net.java:579) at java.base/sun.nio.ch.Net.connect(Net.java:568) at java.base/sun.nio.ch.Net.connect(Net.java:568) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) at java.base/java.net.Socket.connect(Socket.java:633) at java.base/java.net.Socket.connect(Socket.java:633) at java.base/java.net.Socket.connect(Socket.java:583) at java.base/java.net.Socket.connect(Socket.java:583) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:557) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:557) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:555) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:555) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:554) at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:554) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:598) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:598) at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266) at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:189) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:189) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:245) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:245) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:622) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:622) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:453) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:453) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:82) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:82) at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51) at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) PS C:\Users\Joanne\Desktop\BKA> npm start

BKA@0.0.1 start
react-native start

info Welcome to React Native v0.73 info Starting dev server on port 8081...

                    β–’β–’β–“β–“β–“β–“β–’β–’
                 β–’β–“β–“β–“β–’β–’β–‘β–‘β–’β–’β–“β–“β–“β–’
              β–’β–“β–“β–“β–“β–‘β–‘β–‘β–’β–’β–’β–’β–‘β–‘β–‘β–“β–“β–“β–“β–’
             β–“β–“β–’β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–’β–’β–“β–“
             β–“β–“β–‘β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–’β–‘β–‘β–‘β–’β–’β–‘β–‘β–‘β–’β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–’β–’β–’β–’β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–‘β–‘β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–“β–“
             β–“β–“β–’β–‘β–‘β–’β–’β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“
              β–’β–“β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–’β–‘β–‘β–‘β–’β–“β–“β–“β–’
                 β–’β–“β–“β–“β–’β–‘β–‘β–‘β–‘β–’β–“β–“β–“β–’
                    β–’β–’β–“β–“β–“β–“β–’β–’

            Welcome to Metro v0.80.2
          Fast - Scalable - Integrated

info React Native v0.73.2 is now available (your project is running on v0.73.1). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.73.2 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.73.2 info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows". info Dev server ready

i - run on iOS a - run on Android d - open Dev Menu r - reload app

info Opening app on Android... info A dev server is already running for this project on port 8081. info Installing the app...

Task :gradle-plugin:compileKotlin UP-TO-DATE Task :gradle-plugin:compileJava NO-SOURCE Task :gradle-plugin:pluginDescriptors UP-TO-DATE Task :gradle-plugin:processResources UP-TO-DATE Task :gradle-plugin:classes UP-TO-DATE Task :gradle-plugin:jar UP-TO-DATE Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

Configure project :react-native-reanimated Android gradle plugin: 8.1.1 Gradle: 8.3 IOException: https://dl.google.com/android/repository/addons_list-5.xml java.net.ConnectException: Connection refused: connect IOException: https://dl.google.com/android/repository/addons_list-4.xml java.net.ConnectException: Connection refused: connect IOException: https://dl.google.com/android/repository/addons_list-3.xml java.net.ConnectException: Connection refused: connect IOException: https://dl.google.com/android/repository/addons_list-2.xml java.net.ConnectException: Connection refused: connect IOException: https://dl.google.com/android/repository/addons_list-1.xml java.net.ConnectException: Connection refused: connect Failed to download any source lists! IO exception while downloading manifest: java.net.ConnectException: Connection refused: connect at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:579) at java.base/sun.nio.ch.Net.connect(Net.java:568) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) at java.base/java.net.Socket.connect(Socket.java:633) at java.base/java.net.Socket.connect(Socket.java:583) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:557) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:555) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:554) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:598) at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:189) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:245) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:622) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:453) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:82) at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

IO exception while downloading manifest: java.net.ConnectException: Connection refused: connect at java.base/sun.nio.ch.Net.connect0(Native Method) at java.base/sun.nio.ch.Net.connect(Net.java:579) at java.base/sun.nio.ch.Net.connect(Net.java:568) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) at java.base/java.net.Socket.connect(Socket.java:633) at java.base/java.net.Socket.connect(Socket.java:583) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:557) at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:555) at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:554) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:598) at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:189) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:175) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:245) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:622) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:453) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:82) at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

Still waiting for package manifests to be fetched remotely. 5 actionable tasks: 5 up-to-date

info πŸ’‘ Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 11s info Run CLI with --verbose flag for more details.

huntie commented 10 months ago

This appears to be an issue with your Android build (as run from React Native CLI), not with Metro. Try making sure you've followed all the install steps from React Navigation β€”Β and possibly search for issues in that repo if this persists.