Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project has no default.properties file! Edit the project properties to set one

While configuring MJAndriod I have got an error as follows:

Project has no default.properties file! Edit the project properties to set one. 

I have a default.properties which us set to a perfect target and works for another application in the same workspace.

Kindly help me resolve this.

like image 447
Soumya Avatar asked Oct 04 '10 17:10

Soumya


People also ask

How to change project properties in Visual Studio 2022?

To access properties on the solution, right click the solution node in Solution Explorer and choose Properties. In the dialog, you can set project configurations for Debug or Release builds, choose which projects should be the startup project when F5 is pressed, and set code analysis options.

Where is project properties in Eclipse?

To view the project properties, right-click a project, click Properties, and select the Java ME category.


1 Answers

If the project already contains a file default.properties you can open that file and edit+save it (add a space, save, remove that space, save). That worked for me.

A note with the above discussion:

R.java is getting generated automatically by doing the above described process. When I go and remove it, it gets generated again. Neither is it allowing me to edited the automatically generated one. – Compuser7

With respect to the comment quoted above, R.java is indeed an automatically generated class that contains references to all the resources (in the res folder) that belong with your project.

When Eclipse rebuilds, this file is regenerated, since most application (I mean Java code) rely on the fact that there are some resources (images, layouts and string values) available. When you remove the file R.java through Eclipse, Eclipse will see this change in the project as a reason to automatically rebuild (see the options under Project) the project, regenerating the R.java file.

So DON'T try to remove R.java, because Eclipse will regenerate it as soon as you rebuild the project, which will result in a match of patience ;)

like image 96
Timo Avatar answered Sep 28 '22 14:09

Timo