react-native-mmkv
react-native-mmkv copied to clipboard
Android build error "package com.reactnativemmkv does not exist"
Hello, not sure what's up but I'm suddenly running into this error w/o any local changes:
/client/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:39: error: package com.reactnativemmkv does not exist
import com.reactnativemmkv.MmkvPackage;
^
/client/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:115: error: cannot find symbol
new MmkvPackage(),
^
symbol: class MmkvPackage
location: class PackageList
Same issue is also occurring with react-native-vision-camera. Latest version of both, running [email protected].
Bug is probably related to the following error that appears for only a brief moment at the beginning of ./gradlew assembleDebug:
Warning: IO exception while downloading manifest:
java.io.FileNotFoundException: https://dl.google.com/android/repository/sys-img/android-desktop/sys-img2-1.xml
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1935)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1525)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:248)
at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.downloadAndCache(DownloadCache.java:624)
at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:547)
at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:61)
at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadAndStream(LocalFileAwareDownloader.java:51)
at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:139)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
@jesse-savary I'm running into this today - did you manage to fix it?
@mikepaszkiewicz Unfortunately no, the issue seems to be greater: https://youtrack.jetbrains.com/issue/IDEA-292541
Not sure how more people haven't run into this.
@jesse-savary Hmm yeah - will report back here if I make any progress.
having the same problem :(
Me too!
Can you guys try with completely nuked clean cache for Gradle?
java.io.FileNotFoundException: https://dl.google.com/android/repository/sys-img/android-desktop/sys-img2-1.xml
Hey, I've encountered the issue demonstrated in this comment. I tried applying your solution on a macOS machine (rm -rf .gradle/caches/) and running a local Expo EAS build - it seems to work for me!
sames issue
try to run the command with sudo.
sudo npx react-native run-android
try to run the command with sudo.
Not a good idea, this is not needed. This can mess up your permissions.
Same issue for me.
hey bro, how about this problem? has anything worked?
Same issue for me.
Hey! Sorry I cannot reproduce the issue here and it has been inactive for a while. I am going over issues right now and want to keep the repo clean - so I'm closing this for now, if anyone can post a reproduceable example here I can re-open and take a look :)