Open AOSP in IntelliJ - problems - java

I want open AOSP in IntelliJ, I do step by step like here: https://shuhaowu.com/blog/setting_up_intellij_with_aosp_development.html
but after sync IntelliJ(like in title) can't see classes in package, I cant't create "Java Class", and in some cases after mouse over can't see tips.
I can also write anything I want and and the program does not report an error. Any ideas how I can solve this problem?

for Aosp you cannot use Intelleji for clearly
try to use just for IDE and compile project with make
my advice is VScode

Related

How to properly add craftbukkit/spigot/paper as an external library in Eclipse?

I'm having issues including bukkit/spigot/paper into my Eclipse since when I try "extends JavaPlugin" in my Class it does not seem able to import the file
I have tried versions of craftbukkit, spigot and paper on several occasions but it just does not seem to work:
From all the online tutorials I have seen, I have noticed that on their versions of eclipse the "Modulepath" and "Classpath" headings do not seem to be there, but for me they are right there:
Could someone please tell me how to fix this issue?
I'm using Intellij IDEA and there is a plugin that create all the file on it, if you really want a clean environment use this to create your project and go back on eclipse after, i can create it and send you the main folder if you can provide you paper version that you want
You cannot use paper as a External JAR. Instead download Bukkit or Spigot from the internet (or use BuildTools to compile your own jar file), and use those instead of paper.

How do I download and build code of Eclipse IDE for Java?

Is there any manual on this? I can't find any.
What are necessary packages and where is their repo, what is the project structure and build process?
UPD the ultimate goal I'm trying to achieve is to debug Eclipse on Windows
Check these links
http://wiki.eclipse.org/Development_Resources
https://wiki.eclipse.org/Eclipse_Corner#Eclipse_Platform_Technical_Overview
https://wiki.eclipse.org/Platform_UI/How_to_Contribute#Setting_up_your_SDK
http://wiki.eclipse.org/Platform
There is a new tool called oomph Try this its easy to setup development environment. Check this video
Unable to comment so posting as answer
Please check this link should get you started
http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/srcIncludedBuildInstructions.html
I agree with the comment from #user3159253 . Cannot really understand the need to go through this trouble. Use RPM.

Java Debugging: Source not found

I am having a problem with Eclipse where I can run my program just fine, but when I try to start the debugger, I get this message
The picture is a little hard to make out, but instead of getting the normal debugging window, instead it says it is throwing a ClassNotFoundException, and is trying to dislay the source for Launcher$ExtClassLoader.
The thing that really baffles me though is that I can run the code just fine, it is only when I click the debug button that I have the problem.
I have also tried debugging at the command line with JDB, and I got the same error.
So far, I have tried Reinstalling Eclipse and downloading (what I believe to be) the correct Java Development tools for Mac OS X.
I have no idea what else I can try, so any help would be greatly appreciated. Let me know if there is any other information I can provide.
Source not found might be legitimate for dynamically loaded code (e.g. Maven).
There are three workarounds known to me (after months of search):
Connect to a running JVM with the debugger and you will see the code.
Use Dynamic Source Lookup plugin for Eclipse from here:
https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup
Use run-jetty-run Maven plugin
http://code.google.com/p/run-jetty-run/
I prefer and recommend 3. It works and starts webapp much faster than jetty:run.
Unfortunately 2. didn't helped me as it has issues with Windows paths with spaces.
I have filled an enhancement request on Eclipse Bugzilla and if you agree this issue "Source not found" should vanish forever, please vote for it here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384065
Do you have the sources for the files that you are using. If you are using Maven (M2Eclipse) you could download the sources. This might solve the problem.
Otherwise you could go and manually attach your sources. Here is how you manually attach sources.
Next you have to attach the sources-
Hope this helps
The "source not found" is a red herring - there may simply be no way to get access to the source that is throwing the error, because it is deep in the guts of the debugger's class loader.
The better question, then, is, "Why is scottrice.ChessPuzzles.ChessPuzzleDriver not being found?" The only possibility that occurs to me at the moment is that something might be weird in your debug configuration. Did you debug the program by just right-clicking a file with a main() and choosing "Debug As" -> "Java Application"?

Errors in Eclipse for no reason

I'm building an Android app.
I worked today on my app, and suddenly I saw that all the projects in the workspace are marked with an error. I don't know what caused it, and I can't find explanation of the error anywhere.
I'm using Helios with Windows 7. I even tried downloading Eclipse again but it didn't help.
Today I tried to integrate Facebook with my app. Their tutorial required me to try to get a hesh key from a keystore. In the process I added an Environment Variable named JAVA_HOME, and pointed it to the JDK.
I don't know if it's the cause of my problem, but I think it might be related.
I really don't know what to do.
Thanks!
Try this. In eclipse, go to Project --> Clean --> Select "clean all projects". This should rebuild all projects.
Try cleaning your android project. I get problems with Eclipse sometime, and if I clean the project, it fixes it.
Find the "Problems" view. That will give you more details. Post the description of the problems, we can get more information.
click Window -> Show View -> Problems
Typically, the problem is with a resource you've recently added to your project (drawable, assets, raw, etc.)
Some things to check are:
Invalid XML files
Invalid 9-patch images (outer 1-pixel border must be full black or transparent)
Typically, just start by removing a resource, then cleaning your project (Project > Clean). If the errors go away, that resource is your problem. If not, continue this process until the error DOES go away. Start with the most recent resources you've added, naturally.
i solved error or all project showing errors this way.... close eclipse.
then Right Click on eclipse shortcut-->open file location-->open command widows there and type "eclipse.exe -clean" eclipse the starts..and in my case errors were gone...hope it helps

Eclipse won't check for errors in my code (Java EE)

I have been trying to use Spring in my Java EE projects and while everything will compile just fine for some reason Eclipse just refuses to do any sort of live error checking like it normally does. you know like underlining a line of code that is totally wrong for ex:
System.BananaBoat.SetSail();
Obviously this class doesn't exist but Eclipse isn't throwing any sort of error at all. It just lets me do it. Is there something I need to enable to make sure that this is getting tested? Is this related to the incremental compiler?
Any insight on this would be great. Feels like being back in the stone age without this.
Check if the project has any problems in the "problems" fast view. Sometimes, Eclipse refuses to build automatically if there is a problem such as a cyclic module dependency, or some required .class file being referenced indirectly.
Here are some links:
Eclipse Problems View not showing Errors anymore
Best Practices for Eclipse's Problems View
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cprbview.htm
Make sure that the automatic build isn't turned off.
I found this answer somewhere else.. Anywho, make sure your files are under the "src" file under your project, I had mine in another folder, for some reason eclipse will refuse to error-check in a place other than the src folder.

Categories

Resources