tags:

views:

421

answers:

3

I have a question.

I am developing android application on Linux platform because i have to make a system.img with a application.

When adding a drawable resource and building the project with mm command, i met a below error.

"cannot find symbol R.drawable.icon_send_type"

At above error, the icon_send_type is the added resource.

This error occurred because the mm command did not generate R.java.

So, i want to know how to generate R.java by a manual on Linux platform.

Please help me.

+1  A: 

Developing on Linux is no reason for not using the whole Eclipse IDE and the integration of all the tools that it brings you.

If you can't use Eclipse you can build your project with ant. If you create a project with the Android SDK there should be an ant file that helps you to build your project. I recommend reading this part of the documentation on how to work with other or without Eclipse.

Janusz
+2  A: 

I solved the error that the R.java was not generated by mm command on linux platform.

The drawable resource's date was the problem.

I used a linux's touch command in res/drawable folder and i run the mm command, then R.java generated renewedly.

A: 

Try to remove the R.stamp file from your intermediates directory, like

out/target/common/obj/YOUR_APP_intermediates/src/R.stamp

yenliangl