解决导入Android-sample出错问题
2011年07月26日
1、错误信息:
[2011-07-26 17:18:25 - ApiDemos] F:\android\android-sdk_r12-windows\android-sdk-windows\platforms\android-4\samples\ApiDemos\res\values\strings.xml:643: error: Apostrophe not preceded by \ (in The Android platform is a software stack for mobile devices including an
[2011-07-26 17:18:25 - ApiDemos] operating system, middleware and key applications. Developers can create
[2011-07-26 17:18:25 - ApiDemos] applications for the platform using the Android SDK. Applications are written
[2011-07-26 17:18:25 - ApiDemos] using the Java programming language and run on Dalvik, a custom virtual
[2011-07-26 17:18:25 - ApiDemos] machine designed for embedded use which runs on top of a Linux kernel.
[2011-07-26 17:18:25 - ApiDemos]
[2011-07-26 17:18:25 - ApiDemos] If you want to know how to develop applications for Android, you\'re in the
[2011-07-26 17:18:25 - ApiDemos] right place. This site provides a variety of documentation that will help you
[2011-07-26 17:18:25 - ApiDemos] learn about Android and develop mobile applications for the platform.
[2011-07-26 17:18:25 - ApiDemos]
[2011-07-26 17:18:25 - ApiDemos] An early look at the the Android SDK is also available. It includes sample
[2011-07-26 17:18:25 - ApiDemos] projects with source code, development tools, an emulator, and of course all
[2011-07-26 17:18:25 - ApiDemos] the libraries you'll need to build an Android application. What would it take
[2011-07-26 17:18:25 - ApiDemos] to build a better mobile phone?
[2011-07-26 17:18:25 - ApiDemos] )
[2011-07-26 17:18:25 - ApiDemos] F:\android\android-sdk_r12-windows\android-sdk-windows\platforms\android-4\samples\ApiDemos\res\layout\scrollbar3.xml:87: error: Error: No resource found that matches the given name (at 'text' with value '@string/scrollbar_3_text').
[2011-07-26 17:18:25 - ApiDemos] F:\android\android-sdk_r12-windows\android-sdk-windows\platforms\android-4\samples\ApiDemos\res\layout\scrollbar3.xml:100: error: Error: No resource found that matches the given name (at 'text' with value '@string/scrollbar_3_text').
[2011-07-26 17:18:25 - ApiDemos] F:\android\android-sdk_r12-windows\android-sdk-windows\platforms\android-4\samples\ApiDemos\res\layout\scrollbar3.xml:117: error: Error: No resource found that matches the given name (at 'text' with value '@string/scrollbar_3_text').
[2011-07-26 17:18:25 - ApiDemos] F:\android\android-sdk_r12-windows\android-sdk-windows\platforms\android-4\samples\ApiDemos\res\layout\scrollbar3.xml:129: error: Error: No resource found that matches the given name (at 'text' with value '@string/scrollbar_3_text').
解决办法:修改文件ApiDemos\res\values\strings.xml 把该文件中所有 ' 转义成 \'
涉及的行数:
365行:I\'m off!
366行:I\'m on!
635行:If you want to know how to develop applications for Android, you\'re in the
641行:the libraries you\'ll need to build an Android application. What would it take
2、关于Conversion to Dalvik format failed with error 1错误的解决:
A:我的办法,直接把引用错误的jar删掉。
B:网上转载:
android低版本工程(如1.5)放到高版本环境中(如2.2)可能会上述错误,解决方法如下:
1。 如果不修改android sdk版本,则使用project clean 命令作用于某工程即可。
(该处理方式只是在高版本中兼容了低版本工程,未真正意义上的升级)
2。 如果修改android sdk版本,则需要以下几个步骤:
1)修改SDK
选择工程,build path --> configure build path ---> library 删除引用的低版本SDK,
然后add External JARs,选择高版本SDK,OK,保存
2)修改classpath文件
该文件可能存在该项:
3) 修改AndroidManifest.xml
在AndroidManifest.xml文件中,application标签后添加
4) 修改default.properties(很重要)
该文件最后一行(前面没用#的)target=android-3 该成target=android-8,保存。
再看看你的工程和新建的android 2.2的工程结构就一样了。
发表评论
-
Linux下Socket编程之TCP Server端
2012-01-20 00:41 499Linux下Socket编程之TCP Server端 201 ... -
Socket编程中的select多路复用
2012-01-20 00:41 606Socket编程中的select多路 ... -
[连载] Socket 深度探究 4 PHP (一)
2012-01-20 00:41 615[连载] Socket 深度探究 4 ... -
C#版 Socket编程(最简单的Socket通信功能)
2012-01-20 00:40 875C#版 Socket编程(最简单的Socket通信功能) 2 ... -
Windows Socket IO 模型【转帖】
2012-01-20 00:40 762Windows Socket IO 模型【转帖】 2011年 ... -
Windows环境下设置Qt编译环境 - 关于Qt的静态链接库的配置和生成方法
2012-01-17 00:58 726Windows环境下设置Qt编译环境 - 关于Qt的静态链接库 ... -
Platform Builder和Embedded visual C++简介
2012-01-17 00:58 635Platform Builder和Embedded vis ... -
基于Windows CE的激光切割机开放式数控系统的研究
2012-01-17 00:58 545基于Windows CE的激光切割 ... -
windows 系统Android模拟器联网设置
2012-01-17 00:58 692windows 系统Android模拟器联网设置 2011年 ... -
库文件和系统调用的区别
2012-01-15 19:41 558库文件和系统调用的区 ... -
10] 建立C帝国(GDAL编译安装以及一般的C库编译步骤)
2012-01-15 19:41 70610] 建立C帝国(GDAL编译安 ... -
HK-2000数据采集仪WEB服务器BOA的移植方法
2012-01-15 19:41 605HK-2000数据采集仪WEB服务器BOA的移植方法 200 ... -
如何为linux嵌入式开发建立交叉编译环境(2.4内核)
2012-01-15 19:41 574如何为linux嵌入式开发建立交叉编译环境(2.4内核) 2 ... -
【转】如何为嵌入式开发建立交叉编译环境
2012-01-15 19:41 465【转】如何为嵌入式开发建立交叉编译环境 2009年10月26 ...
相关推荐
Android-WiFi-Connection-Demo-Code-Sample-master.zipAndroid-WiFi-Connection-Demo-Code-Sample-master.zipAndroid-WiFi-Connection-Demo-Code-Sample-master.zipAndroid-WiFi-Connection-Demo-Code-Sample-master...
sample-of-Android-week-view This is a sample of android week view,Thanks the author of android week view ,The WeekHeaderView is based on android week view .This project contains two view ,the header ...
wiremock-android-sample-源码.rar
circle-ci-android-sample-源码.rar
安卓usb转串口 支持FT232,插入设备之接可以通信。。
解决Fragment换肤在某些版本的support-v4包下失效的问题(感谢@javake同学)(2015-12-02) 对textColor加入selector类型的资源的换肤支持(感谢@pinotao同学) (2015-09-26) 添加在代码中创建的View的换肤支持 (2015-...
android-19 sample
Android MVP Sample Application A basic sample android application to understand MVP in a very simple way. Just clone, build, run and understand MVP. Check out Mindorks awesome open source projects ...
android-mvi-sample Example MVI implementation, based off of Google's architectural samples. Description This is a sample implementation of the Model View Intent pattern. Full Android examples for MVI...
之前官网下载的最新版本的vuforia插件 高通 Vuforia SDK Andriod 8-6-7版本
delphi-android-bluetooth-printer-sample-master
android sdk sources sample 目录,解压至sdk即可
Libvlc android sample media player.
cambridge-english-key-sample-paper-1-listening v2
This sample shows how to call the Google Assistant Service from Android Things using gRPC. It records a spoken request from the connected microphones, sends it to the Google Assistant API and plays ...
Android DynamicsProcessing 示例程序。Android 9.0新增了用于 DynamicsProcessing 的 AudioEffect API,使用此类,我们可以构建基于通道的音频效果,包括各种类型的多个阶段,包括均衡,多频段压缩和限制。频段和...
android-design-support-lib-sample This Project is used to for me to get know with the new desing lib from Google. and to make the first pitfalls ;D. Furhter I will try to make an example for each of ...
Genius-Android 库示例APK。 详细:http://blog.csdn.net/qiujuer/article/details/39831451
Android --Google框架与Google服务
Android 获取传感器数据的示例程序。