Netbeans Android R.java

来源:互联网 发布:男士皮衣品牌 知乎 编辑:程序博客网 时间:2024/05/21 12:47

Anyone using the nbandroid plugin for netbeans to develop android apps may have come accross the same problem I did.

R.java doesn't seem to get updated.

In order to fix this, add the following lines to the AnroidManifest.xml and 'build' the project again.

 <target name="-pre-compile">   <echo>Generating R.java / Manifest.java from the resources...</echo>   <exec executable="${aapt}" failonerror="true">     <arg value="package" />     <arg value="-m" />     <arg value="-J" />     <arg value="${src.dir}" />     <arg value="-M" />     <arg value="AndroidManifest.xml" />     <arg value="-S" />     <arg value="${resource.dir}" />     <arg value="-I" />     <arg value="${platform.bootcp}"/>   </exec> </target>

R.java is magically updated

原创粉丝点击