When I compiled the andriod 7.1.2. I encountered this problem. I had checked my openjdk version. It is openjdk8. So, what is another possibility?
ninja: error: 'out/host/linux-x86/obj32/SHARED_LIBRARIES/libopenjdkjvm_intermediates/export_includes', needed by 'out/host/linux-x86/obj32/SHARED_LIBRARIES/libopenjdk_intermediates/import_includes', missing and no known rule to make it
One solution is from here:
https://groups.google.com/forum/#!topic/android-building/Gz3joT38lVk
Do disable ninja to compile. However, it also has this problem.
So, what is the solution for this?
Finally I solved my problem with deleting and downloading the AOSP again. I suppose that the problem is caused by the multiple and various android version downloading.
Related
I am trying to follow the JaCaMo Eclipse Plugin instructions. I am getting a problem when installing a new software. Can anyone help? enter image description here
I tried to follow instructions but cannot solve the issue above. I have looked but cannot see anyone having the same problem.
I had the same issue. The problem is with the version of Eclipse. I'm assuming you're using a version that's 2021-12 or later. After the whole fiasco with Log4j at the end of 2021, I believe they stopped using it or changed something about it in Eclipse, and hence the error. Using Eclipse with versions 2021-09 or before will solve the issue.
Error: A JNI error has occurred, please check your installation and try again.
Eclipse states: test has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0.
I had the problem referenced at this question: "Could not find or load main class" while trying to use JavaFX in Eclipse When using JDK13 and JavaFX13. All solutions pointed to downgrading to Java 8.
I installed Java 8, updated the build path, and it built fine. But now I get the error I am using Eclipse 2019-06 (4.12.0), JavaFX13, and JDK 1.8.0_231.
I researched the answer but the two questions that come didn't help. One was for an IntellJ solution and the other had a package I am unfamiliar with, and the error had to do with that package.
I simply don't know how to correct the build path or dependencies to fix this issue. It appears I need a lower version of the JVM, but cannot seem to locate it. Am I right, or can you please help?
Well, I have dropped back to JDK 8 and the built in JavaFX. Despite my best efforts, I cannot get JDK13 and JavaFX 13 to work without receiving the error "Could not find or load main class" (see link in post). Since there is no solution to that problem yet that works for me, I can bypass my error on this request all together and just use much older packages.
As per this thread the bug is "resolved" and the fix is available here but I have no idea as to how to use it. I've tried copying over all .java files to my local project but I get errors related to missing Classes. There's also a C++ source file involved which I don't know what to do with.
The Bug is fixed in the OpenJDK itself. So you need to update the OpenJDK on the machine which is running your app and that's it. Be sure to install a version that includes the fix.
I installed Android Studio the other day to develop an app and even though it's not the first time I've used it, it's the first time I've installed it on this PC and I'm fairly new to all of it.
Problem: After installing Android Studio, I can't even make a "Hello_World" app, even the templates AS offers have a compiling error:
Where it doesn't recognize symbols like "Override". The Alt+Enter solution that offers is to Setup JDK which does nothing for all options or create annotation 'Override' which doesn't really seem like a good option.
These are both build.gradle files:
Things I've tried to fix it:
Reinstall Android Studio Multiple Times
Download JDK manually and change references.
Check Enviromental Values on system (Add JAVA_HOME and heck Path to be correct). Pretty sure both java and JDK work since in cmd I can run java and javac.
Obviously Build->Clean and File->Invalidate Cache + Restart
android.enableAapt2=false on gradle.properties
Trying to delete all java from my PC and reinstall bare minimum THEN install everything separatedly.
Install all SDK plataforms until Android KitKat.
It's worth noticing that in the past I had a lot of problems getting java to run in only one place (mainly because I install software in an HDD and have OS on another SDD).
Also, while installing AS for the first time I got into a BSOD because of VT-x having shitty interaction with virtualization of anti-virus (that took me a while to figure out) so it stopped halfway. However I've reinstalled a bunch of times so I don't know how that could matter.
The problem is very similar to this one
I'm practically lost here. I've been trying to fix this for three days and I've looked into dozens of Stack-Overflow posts with similar problems, haven't found a solution.
Any idea will be appreciated.
Thanks.
I repeated your error:
I made it by deleting Android SDK(not java SDK) in Android Studio:
File-Settings-AndroidSDK
Try to pick at least one and install
It seems that your problem is related to Android SDK
Okay guys, I've finally figured it out, thanks to artmmslv.
Android Studio's installer detected automatically - two versions of Android SDK which were corrupted (probably caused by BSOD messing up the installation).
I had to make sure to delete everything. Java SDK, Android SDK. Java JRE. Every data from Appdata or documents from Android Studio. Once the computer is clean from any traces of already installed plugins, modules, and whatnot, it should be able to set up perfectly fine paths.
Also, make sure to set up manually and correctly the Environmental Values of java (path edit and JAVA_HOME).
Thanks for the help.
I got a solution that was a problem for me.
(in Build.Gradle file) - It's the
Compile SDK version 32
//which was not the latest one,
I changed it from older (31) in old projects to (32)
And clicked: sync now,
it worked!!
Hope it helps:) Happy coding
I am very new to Android development. I followed every steps from developer.com to install ADK. Now my issue is, when I tried to run HelloAndroid application, I get an error as I mentioned in the title.
I hav JRE1.6 installed. Is tat enuf? Because I read tat ether jdk or jre is ok. I am clearly blank about the concept of this apk error. And I am using Eclipse Ganymede. Kindly give a solution for my issue. Thank You. :)
Try in eclipse: Project -> Clean... -> Your android project
Helped in my case. However, I was developing and successful building apk's with eclipse for months before this error occurred.
I had the same problem, I resolved it by re-booting eclipse. I suggest you try this first.
I can spot one major issue.
JRE alone is insufficient. Here is an extract of their development system requirements.
JDK 5 or JDK 6 (JRE alone is not sufficient)
Here you can find their page on system requirements. http://developer.android.com/sdk/requirements.html
I'm not sure but I guess your error comes from not having the JDK installed.
I had the same issue which I solved by using JRE system library 1.6 instead of 1.5. My post cronicles all the other solutions I've seen online, hope it helps.
apk issue post
I encountered this problem and didn't really see easy advice on the internet. To fix it, I followed these steps. #1 may not be necessary, so try #2 first alone.
Upgrade the JDK from 1.5 to
1.6. Even if you bypass this step, ensure you have a JDK installed.
Removed/Delete the project completely then create a new HelloAndroid project. A config setting is occasionally off. Obviously back up the source code if the project is more important to you than a Hello World application.
If it works, you may encounter a timeout error after launch when the HelloAndroid.apk is installing in your emulator. Change the timeout from 5000ms to 10000ms in
Windows -> Preferences -> Android -> DDMS -> ADB Connection timeout(ms).
Good luck!