The problem with the addition of raw materials

I am going through a small example to hit the https web services. This requires creating a keystore and placing the resulting bks file in the / res / raw directory. Simple enough. However, I cannot access the file through R.raw ...

I placed the file in the / res / raw directory, updated my project in Eclipse, moved to the / res / raw directory in Eclipse and confirmed that it appeared in the project. However, when I type R.raw. in my file, the resulting list of possible file names is empty.

I tried to clean and rebuild, but the project still does not know what R.raw.mycert is.

What am I doing wrong?

+3
source share
3 answers

The answer to this question can be found here:

R.raw.any doesn't solve anything

+1
source

Eclispe , , ... eclispe

!

0

- EclipseWorkspace. "res". . , "raw".
"" . ( , rwx Linux, . Windows.) , . , res.raw.yourfile ( ). , "R.raw.yourfile", "gen/*/R.java" .

I think there is a bug in the gen compiler, or possibly in Eclipse. gen seems to be very picky about what resource he wants to look at, and also does some deletion of the name. For example, R.string.xxx finds a string named xxx, although string resources are under "res.values.string.xml". Thus, it is obvious that a lot of magic happens, perhaps special clodes known only to the gods in Mountain View.

Why this fix broke, I have no idea.

0
source

All Articles