I am trying to build my ionic project, but I get the following errors:
error: package android.content.res does not exist
error: package org.json does not exist
Does anyone know how to solve it? Thanks.
It may be because some of your plugins are still using an old version of cordova/gradle plugins, or you didn’t updated cordova/gradle plugin of your app.
You may try:
Remove these cordova plugins and switch to their corresponding versions of the capacitor version your are using.
Another way, if you prefer you may upgrade/downgrade your Capacitor
version to be compatible with the plugins your are using..
Related
I am trying to install the .appxbundle file,but it is showing
App Installer failed to install package dependencies. Ask the developer for Microsoft.NET.Native.Runtime.2.1 package.
I downgrade Microsoft.NETCore.UniversalWindowsPlatform to 6.0.1 then it is asking for
Microsoft.NET.Native.Runtime.2.0 package.
If I updated to latest version 6.2.8 it is asking for
Microsoft.NET.Native.Runtime.2.2 package.
Please help me for fix this.
Derive from this case reply, your current os miss
Microsoft.NET.Native.Runtime.2.0 package dependency. you could get them in the AppPackages folder where store the sideload package.
In the AppPackages sub folder we could find Dependencies folder then chose you want platform folder. You will find Dependencies package like following screenshot.
You could install them manually.
So I was getting the error in this post. I tried upgrading gradle and got another error relating to using an unsupported version of gradle, so I went back to the 4.4.2 version.
Now, I know this is a duplicate of the other question but the problem still exists and has not been solved for the newer versions of gradle and idea. Also I do not want to use a wrapper.
Error I receive:
Unable to load class 'org.slf4j.LoggerFactory'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)</li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Gradle version: 4.4.2
IntelliJ IDEA version: 2018.3.5
You can find a test project here to reproduce the issue. Keep in mind the above versions.
Using the official gradle install method with SDKMAN!, the problem goes away.
The linux gradle package must be dodgy and hence IDEA is complaining.
I was using a file watcher in IntelliJ which automatically compiled my less files into css files. I added an argument to the file watcher which used the autoprefix plugin to add all the prefixes to the compiled css file.
I now switched from a windows machine to mac and I can't get it to work like this there. I installed the autoprefix plugin via npm: https://github.com/less/less-plugin-autoprefix
And I set everything like it was on my windows machine: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000659610-Autoprefixer-in-file-watcher
But now I only get the error message:
"Unable to load plugin autoprefix please make sure that it is
installed under or at the same level as less"
Same error occurs when calling the compiling with plugin from the command line. LESS compiling itself is working fine.
Does anyone has an idea what I'm missing? I'm pretty new on Mac so I don't know if I miss some environment variables or something? Or how can I check where the plugin is installed and where do I have to install it?
Thanks to an answer which seems to has been deleted in the meantime I found the solution.
The current autoprefix plugin needs an older version of less. It's not compatible with less 3.0.1.
After uninstalling less and installing version 2.7.3 with
npm install -g less#2.7.3
it is working again.
Found the solution here: https://github.com/less/less-plugin-autoprefix/issues/30
I need sbt version 0.13.x for a course in Scala and I am having difficulties installing it. I tried with the brew install sbt#0.13 command, but when I then check with sbt about it gives a message No such file or directory.
However, if I again try and do brew install sbt#0.13, it gives Warning: sbt#0.13 0.13.16 is already installed, although sbt about does not find anything.
In addition to that, I tried installing the latest version of sbt with brew install sbt and then manually changing the version each of my projects is using by entering sbt.version=0.13.12 in a given build.properties file. This seemed to work initially, when I check with the terminal the version of sbt inside the project. However, I am still not able to import already existing projects.
Finally, I downloaded the version from http://www.scala-sbt.org/download.html but then I need to do some corrections to my PATH from what I've read online and I am not sure what that means.
So, I would be grateful if someone could help me with the installation of an older version.
The way sbt works is that it will look in project/build.properties for the sbt version to use to build your project. So the way you described - installing the latest sbt and set the version you want to use for the build in project/build.properties - should work just fine.
Regarding
not able to import already existing projects
these existing projects also should have project/build.properties indicating the sbt version.
Note that even with installing 0.13.12 locally, when building your project sbt will still use the version specified in project/build.properties, it will just download it as necessary.
If you absolutely want to run a specific version from the command line, as you already discovered, you can download it. Regarding updating your PATH - PATH is an environment variable that tells your command line where to look for executable files. It's a list of directories, so if you unpacked the downloaded file in say "$HOME/tools", you have so say something like export PATH=$HOME/tools/sbt/bin:$PATH. See https://www.cyberciti.biz/faq/appleosx-bash-unix-change-set-path-environment-variable/ for a more detailed description.
I'm working with NopCommerce 2.60, and suddenly I'm getting this error when I run the project
NuGet Package restore failed for project Nop.Plugin.ExternalAuth.Facebook: Unable to find version '2.0.21' of package 'LinqToFacebook'..
I tried to restore the package by NuGet but got the same error and the wired thing is that I cannot find even the reference to LinqToFacebook in project "Reference", also search for the LinqToFacebook.dll in package folder but is not there.
Any help would be great
Best regards.
Find the package.config inside Facebook Plugin and remove or comment the reference to LinqToFacebook
that solved the error thwon by Visual Studio
I'm getting the same error, and I'm trying to upgrade version 2.65 of nopCommerce to version 2.7. We also have version 2.65 deployed on a public server, and I don't have any LinqToFacebook.dll in our bin folder. I can find no evidence of any LinqToFacebook NuGet package either, so I'm thinking that this .dll was once required by older versions of NopCommerce and is no longer available. My solution is to comment out the line in the package.config file and move on. Later versions of nopCommerce do not require this .dll.