samedi 9 mai 2015

Making custom Android keyboard via Eclipse tutorial; errors about R references won't go away

I guess I can't follow these instructions (but I've never used Eclipse before).

Here's my Eclipse Luna (2; 4.4.2) project structure, including a look at the file (SimpleIME.java) with the two errors (R cannot be resolved to a variable) (I have cleaned the project; rebuilding is automatic.):

enter image description here

There are two identical AndroidManifest.xml files. One that I created and one that Eclipse (or whatever) created.

enter image description here

The project has no Activity by design but Eclipse created one anyway, so I deleted it (with preview; only one reference (itself) was found).

Here's R.layout.keyboard:

enter image description here

Here's R.xml.qwerty:

enter image description here

So... what should I do? I cut and pasted entire contents of files and even file names, so typos shouldn't be the culprit, but maybe the structure is messed up. There's no structure shown at this otherwise excellent tutorial (first link).

Aucun commentaire:

Enregistrer un commentaire