I am using versions of Gradle that are compatible with Java. However, I am getting a strange error as in the screenshot. I received information to add some directories to google, but I did not fully understand. Is there anyone who can help?
Java Version : 19.0.2
Gradle Version : 7.6
Related
I am trying tog get my React Native app (with expo modules, but not built on expo) deployed to the Google Play Store, and I keep getting this error when I try to build...
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
project ':expo' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
My issue us, the line that it seems to be referencing, project ':expo' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10 doesn't exist anywhere in my code, maybe in the node modules but I have no way of knowing.
I have absolutely no idea what kotlin is and never heard of it before this. I tried looking around for where to upgrade by kotlin-gradle-plugin, but thats nowhere in my app.json or package.json or any other config files. I saw some message boards with similar issues telling me to change this line inside of build.gradle
classpath('com.android.tools.build:gradle:7.3.0')
to make 7.3.0 match the version I need, but I firmly believe 7.3.0 is greater than 1.6.20, so I highly doubt that solution has any actual merits
Apparently, the current version of expo-modules are incompatible with the latest version of React Native (0.70.0) and how it compiles Android Builds. I downgraded react-native to 0.69.5. This ultimately led me to other issues but hopefully this can help somebody else.
I'm currently using Android Studio to develop a multi-module project by test-driven-development methods. It went well until I updated my IDE to Android Studio Chipmunk from previous Bumblebee.
When I opened the project after the update, it seemed that AS automatically generated some modules for me. As you can see in the pic, those new names such as [main] and [unitTest] appeared in the project view automatically.
modules generated automatically
After this, I found that the classes and methods of my production code could not be resolved in my test code. AS told me after I pressed Alt+Enter that I should add dependency to the main module of my production code. And it added one line in the build.gradle file: "testImplementation project(path: ':app')". After syncing the gradle build, nothing had changed and it still could not resolve methods in my production code. I can still run the tests by executing gradle test tasks, but it is weird that I cannot use production code in my test code directly.
UPDATE:
For further information, I think this is a problem caused by the update from Intellij 2021.1 to 2021.2, since I re-installed AS Bumblebee and all seems worked fine. I also found this issue in JetBrains YouTrack that has an exactly same problem with me. Here is the link: https://youtrack.jetbrains.com/issue/IDEA-275566/Class-not-found-after-intellij-upgrade-2021-1-2-2021-2
This issue remains open and I've tried some other developers' reply in this issue to delete the .iml files, but the problem remains. I think Intellij 2021.1 and 2021.2 generate different .iml file in the .idea folder.
I was having the same issues in the first Android Studio Chipmunk release - all of my unit test source code was peppered with "Cannot resolve symbol" errors, but the code would still compile and run, and the tests would pass.
I found that I could temporarily workaround (i.e., "fix") the issue by adding a line to the build.gradle file like:
testImplementation project(path: ':shared:library:module')
But today I upgraded to the new Chipmunk release, with details:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
And the issue no longer occurs. I'm guessing the folks working on the IntelliJ platform found and patched the issue. 🙌
got this error when running this command react-native run-android
I even tried so many things to deal with this like degrade your Java SDK version from 13 to 11, but nothing solved the issue.
here is the information about the error.
Where:
Build file 'G:\react\react-native\albums\android\app\build.gradle'
What went wrong:
Could not compile build file 'G:\react\react-native\albums\android\app\build.gradle'.
startup failed:
General error during semantic analysis: Unsupported class file major version 57
Thank you in advance.
It is an issue with the jdk version. Kindly share your gradle
You can try to check your classpath in the gradle build file and update the latest version(3.5.0). The latest jdk versions(11,12 and 13) works fine with the latest android plugin(3.5.0).
3.5.1 is already out but has issues too. I would prefer 3.5.0 for now.
classpath 'com.android.tools.build:gradle:3.5.0'
I am trying to build a Cytoscape app using maven, and I am using EKZTAZI 5.0.1 . When I use Maven Package, it throws the following error :
Execution ekstazi of goal org.ekstazi:ekstazi-maven-plugin:5.0.1:select failed: Running with Java 9 requires -Djvm.options=jdk.attach.allowAttachSelf=true
I have tried searching on how to pass this option online but I am unsure on how to. Any help will be appreciated.
There is currently no Java 9 support available for the public release of Cytoscape, which is likely what is causing your issue.
The next major version release is in development and has Java 9 support (check the Cytoscape GitHub if you're interested in using this: https://github.com/cytoscape/cytoscape)
I'm using a java project with the jpl library, but i'm getting the compile error "the package org.jpl7 does not exist". I've tried to download the latest version, but I've probably get the jpl3 version.
How to get the latest version of jpl7? I've searched extensively, and even found the http://jpl7.org, but there is no hint about how to download that version.
Thanks
You will find it on Maven, look for it on Maven Central!