//Android.mk文件中添加LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
//系统app不需要versionCode ,versionCode ,minSdkVersion ,targetSdkVersion 删除即可
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
//系统编译xml文件时候,textView里面的text属性必须用@string引用不能直接写字符串
/home/myzr/myandroid/packages/apps/AplexTest/res/layout/ui_buzz.xml:43: error: Error: This attribute must be localized. (at 'text' with value '500').
/home/myzr/myandroid/packages/apps/AplexTest/res/layout/ui_buzz.xml:58: error: Error: This attribute must be localized. (at 'text' with value '1000').
/home/myzr/myandroid/packages/apps/AplexTest/res/layout/ui_buzz.xml:73: error: Error: This attribute must be localized. (at 'text' with value '1500').
/home/myzr/myandroid/packages/apps/AplexTest/res/layout/ui_buzz.xml:88: error: Error: This attribute must be localized. (at 'text' with value '2000').
//编译出来没有.dex文件 解决:在Android.mk文件中添加jar支持包的路径 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
//从src目录下开始编译 切记
LOCAL_SRC_FILES := $(call all-java-files-under, src)
//LOCAL_SRC_FILES := $(call all-java-files-under, com)
LOCAL_PACKAGE_NAME := AplexTest
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))