系统编译错误记录

//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))



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值