Could not determine the dependencies of task ':cloud_firestore:compileDebugAidl' [duplicate] - firebase

The project folder is perfect. The error is in visual studio,flutter files or something.
I know there are old versions of VisualStudio and Flutter but my project was working perfectly in these versions. The errors appeared with a wrong update of visual studio, I downgraded it to the version I used to use but the errors persisted
Error Description:
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve io.grpc:grpc-core:[1.21.0].
Required by:
project :app > io.grpc:grpc-okhttp:1.21.0
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
> org.apache.http.client.ClientProtocolException (no error message)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 13s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 14,1s
Exception: Gradle task assembleDebug failed with exit code 1
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Versión 10.0.19043.1645], locale es-AR)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.62.3)
[√] Connected device (1 available)
• No issues found!

Modify the build.gradle file as below
Before
repositories {
google()
jcenter()
}
After
repositories {
google()
mavenCentral()
}
Good luck.

Related

How does one install rJava and qdap onto RLibrary?

I was working on an assignment that requires installing a number of packages (including rJava and qdap), and I was sucessful at that. But when I installed those projects onto RLibrary, I couldn't install Java and qdap.
I got the following errors:
> library(qdap)
Error: package or namespace load failed for 'qdap':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(jli, FALSE)
error: unable to load shared object '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib':
dlopen(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib, 0x000A): tried: '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
> library(rJava)
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(jli, FALSE)
error: unable to load shared object '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib':
dlopen(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib, 0x000A): tried: '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
I then tried to install Java, Java JDK, and pkgname, but got the following errors:
Warning in install.packages :
package 'Java JDK' is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
package 'pkgname' is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
I'm not sure why I am getting these errors. I'm using RStudio Version 2022.12.0+353 (2022.12.0+353), and MacOS Monterey 12.5.

Failed to initiate library(plot3D) package

I am new to R. I was trying to install the plot3D package. The package doesn't work even after successful instalment. I am using Mac OS. following are the codes used :-
install.packages('plot3D')
library(plot3D)
I got the following error:-
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun Error: package or
namespace load failed for ‘plot3D’: .onLoad failed in loadNamespace()
for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so,
0x000A): Library not loaded: /opt/X11/lib/libX11.6.dylib Referenced
from:
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so
Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file),
'/Library/Frameworks/R.framework/Resources/lib/libX11.6.dylib' (no
such file), '/Users/mayank/lib/libX11.6.dylib' (no such file),
'/usr/local/lib/libX11.6.dylib' (no such file),
'/usr/lib/libX11.6.dylib' (no such file), '/lib/libX11.6.dylib' (no
such file),
'/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/server/libX11.6.dylib'
(no such file), '/var/folders/2j/3rpp744j739 In addition: Warning
message: In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout =
TRUE) : running command ''/usr/bin/otool' -L
'/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so''
had status 1

rJava on Mac: Error loading from library: unable to find JVM

I can install rJava seemingly fine from Rstudio:
install.packages("rJava")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/rJava_1.0-6.tgz'
Content type 'application/x-gzip' length 1138672 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
The downloaded binary packages are in
/var/folders/qz/9s5hs9ss00z2yzj_r2668_3c0000gn/T//RtmpqNOAbP/downloaded_packages
But when I then try to call it from the library I get the following error:
library(rJava)
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JVM could not be found
In addition: Warning messages:
1: In system("/usr/libexec/java_home", intern = TRUE) :
running command '/usr/libexec/java_home' had status 1
2: In fun(libname, pkgname) :
Cannot find JVM library 'NA/lib/server/libjvm.dylib'
Install Java and/or check JAVA_HOME (if in doubt, do NOT set it, it will be detected)
> library(rJava)
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JVM could not be found
In addition: Warning messages:
1: In system("/usr/libexec/java_home", intern = TRUE) :
running command '/usr/libexec/java_home' had status 1
2: In fun(libname, pkgname) :
Cannot find JVM library 'NA/lib/server/libjvm.dylib'
Install Java and/or check JAVA_HOME (if in doubt, do NOT set it, it will be detected)
I have installed the latest version of Java and my R is version 4.1.2. I'm using Mac.
If anyone knows how to help I would be very grateful.
Thank you!

I have a problem installing ConvergenceConcepts package in R, it throws an error message saying that 'ConvergenceConcepts' had non-zero exit status

So, I tried to install a package ConvergenceConcepts in RStudio and it threw me an error message:
ERROR: lazy loading failed for package ‘ConvergenceConcepts’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ConvergenceConcepts’
and a warning, that the package had non-zero exit status. How could I resolve this?
Error loading ConvergenceConcepts library:
Loading required package: tcltk
xcrun: error: active developer path ("/Library/Developer/CommandLineTools") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: package or namespace load failed for ‘tcltk’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
Error: package ‘tcltk’ could not be loaded
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
Error when I try to add tcltk library:
library(tcltk)
xcrun: error: active developer path ("/Library/Developer/CommandLineTools") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
Error: package or namespace load failed for ‘tcltk’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/tcltk/libs/tcltk.so
Reason: image not found
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1

I have a problem installing the shinyrgl package. The package is installed but was not installed correctly

This is the error I get.
c("Loading required package: -", "Loading required package: shiny", "Loading required package: incubator")
Failed with error: ‘'package' must be of length 1’
In addition: Warning message:
In if (!loaded) { :
the condition has length > 1 and only the first element will be used
Error in parse_repo_spec(repo) :
Invalid git repo specification: 'shiny-incubator'
Im suppose to load/ open an R file but need to install all the packages first. The problem is that this error doesn't let me open the R file.

Resources