I'm working on an Android project. Something happened with my Eclipse project and I can no longer "see" any of my source files in the project explorer. The project explorer only shows :
src (clicking and trying to open yields nothing -- I can right click and open in a new window and see a bit more, but still can't decend the directory and see files)
gen
android.jar
usb.jar
maps.jar
My java files are still in the directory.
It looks like the project is corrupted somehow? I have tried deleting everything in .metadata/.plugins/org.eclipse.core.resources per some suggestions I've found but that doesn't seem to fix it. I created a new test project and it looked ok last night when I created it, although now, it to shows the same behavior as above. I'm using eclipse indigo service release 1. See the image bellow:
It's because you have the wrong view open. Try to open the Package Explorer
Window > Show View > Package Explorer
Related
I've encountered a problem where on all of my applications, there's a red cross on the top right. I can run it, but the cross doesn't seem to go away.
I've opened the run/debug configurations and it says Warning : Main method not found. I don't understand why it's not found when I already have a corresponding main class and method for each and every application.
I tried to close the project, restarting IntelliJ, restarting my laptop, refreshing my desktop, refresh Gradle by clicking Reimport All Gradle Projects, rebuild the project and clicking Invalidate Caches / Restart. I also tried other suggestions I found on StackOverflow such as deleting the .idea folder. Nothing. The red cross still shows up. I've also realized that I do not have the out folder in all of my Applications.
I just set the language level to equal my SDK version at Project Structure. Finally, it is disappeared.
In Project Settings, First make sure SDK path is correct. Preferably install and use your own SDK. Then use the same SDK in Project and Modules in Project Settings.
File->Project structure ->SDKs
Choose JDK home path, if no jdk is in the path,
you'll see an icon download jdk
download then ok
Try to copy src and gradle folders and buil.gradle and settings,gradle files in separate folder. Then open this new folder as new project in intellij. Then intellij will propose Import as gradle project... - push it.
If problem remained see you build.gradle
I started to work with Eclipse and Maven. Suddenly the generated ${basedir}/target/classes folder is not showing up in the package explorer as previously after refreshing the view. Now I am only able to see ${basedir}/target but in the package explorer it seems to be empty even after fresh build and manual refresh. I can see the files with file explorer outside eclipse so I know they are there 100%.
How do I tell Eclipse or Maven to show the files again?
The fix from here is not working for me.
See this answer and notice that it is only possible in "Project Explorer" not in "Package Explorer".
I updated the ADT and imported the projects. Unfortunately, I replaced the projects/folder.
All of sudden, all the files in the folder became 0 bytes, including files in sub folders and all the current auto backups. Is there any other way to recover?and why this all 0bytes happened?
I had tested decompiling my apk from mobile with this and Differente decompilers. but, couldn't all the codes and obstucted codes. and most of the decompiler resulted errors.
I don't know what happened to your project but you can try to Restore from Local history :
Package Explorer view > Right click on file/project > Restore from Local history
My computer crashed (Got the blue screen of death).
After that I was unable to open my project again, however, it's files were still present.
So I opened a new project and created all the files again and then copied the content inside.
Everything went well except for errors in all of my java files: "R cannot be resolved to a variable".
Additional info:
My Android SDK Build-tools are installed
The new project I created has the same name exactly, except for an aditional char "3" at the end of it [example: test3 instead of test],
and I editted the menifest file properly and also every java file to
contain the propper package name.
My R.java file is present [I'm using Eclipse, Windows7]
Would very appreciate help in solving this.
It is a quite common issue when using Eclipse for Android development but for some reasons, Eclipse isn't exit properly; re-opening the project will see the error logs of R.java ....
I suggest to remove the project from workspace (don't delete local files), copy your project source code to another directory. From Eclipse, File -> Open Existing Android Project, find the project source directory to re-add into workspace. Update the SDK version and dependencies. Usually, it should be fine at this step.
For experienced developers, I guess you know how to check file lock (#ChuongPham mentioned in comment above) and check for wrong resources references in projects manually...
I'm running NetBeans 7.3 on Ubuntu 12.10. I'm taking a course in Java Web Development, so I have a project called jsage8 that contains my work for the course. Previously this project was displayed in the Projects tab just fine, but now opening the project doesn't do anything. It just says "No Project Open" when I click to open it in the Open Project menu. It will however open a normal Java Project folder that isn't a web based project. Currently there's only an index.jps, a .html file, and a .css file in the project, is it not displaying because there's no .java files present?
Feeling a bit helpless here and I can't seem to google anything that addresses this specific issue so I'm wondering if I've just done something wrong?
NOTE: I can navigate to the directory the files in and open them in NetBeans manually, but the projects tab remains blank. I can even click "Run Project" and build the project and have it display in a web browser using my local Tomcat server with no issues also.
NOTE: The jsage8 project also doesn't show up in the "Recent Projects" menu whereas other projects do.
NOTE: I can even right click the index.jsp's file tab once opened in NetBeans and click "Select in Projects" which opens the prompt "Do you want to open project jsage8" I click Ok and nothing happens.
Nevermind, I ran the update for NetBeans and everything seems to be working fine now (even though just restarting it had done nothing). If you're having a problem similar to this try updating NetBeans and see if that fixes your problem.
Do you install fully features which contain Web Development plugin?
I think you forgot it already
Solution for Windows
Locate the project on your pc, once located in the folder-> properties -> security -> edit the permissions-> full control activated -> accept. After that I restarted Apache Netbeans 11.3 and I was able to open my project normally.
My problem was that I couldn't open any web application in apache netbeans.