需要注意下
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.launcher"
android:sharedUserId="@string/sharedUserId"
>
这里package="com.android.launcher",产生的R.java就会在com.android.launcher中
<original-package
android:name="com.android.launcher2" />
这个地方表示,源码包是com.android.launcher2。所以在代码中引用的R.java必须是import
com.android.launcher.R;
【Android】AndroidManifest 中original-package标签,布布扣,bubuko.com
【Android】AndroidManifest 中original-package标签
原文:http://www.cnblogs.com/rayray/p/3570419.html