Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android Module - defining menu using xml

$
0
0

I am developing an Android Module, I add my customised menu xml "context_menu.xml" to it by placing it in folder /platform/android/res/menu/ in Module Project

It can successfully packaged but when I include the module in another Mobile Project, it always raise an error during build:

[ERROR] Unable to find generated R.java file
Here is the context_menu.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/acion_highlight"
        android:title="@string/highlight"
        android:showAsAction="always"/>
 
    <item android:id="@+id/action_addNote"
        android:title="@string/addNote"
        android:showAsAction="always"/>
</menu>
What's wrong?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>