- 浏览: 35813 次
最新评论
解决导入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的工程结构就一样了。
发表评论
-
同步对象Event的用法
2012-01-20 10:27 653同步对象Event的用法 2010年07月05日 首先介 ... -
UDP_CORK,TCP_CORK以及TCP_NODELAY
2012-01-20 10:27 822UDP_CORK,TCP_CORK以及TCP_NODE ... -
同步、异步、阻塞和非阻塞
2012-01-20 10:27 771同步、异步、阻塞和非阻塞 2010年11月03日 原文网 ... -
如何从Android系统中删除“无用”程序
2012-01-19 15:27 714如何从Android系统中删除“无用”程序 2010年10 ... -
刷埃及
2012-01-19 15:27 949刷埃及 2011年10月05日 1:电脑端: ... -
WINDOWS PHONE 7使用必知
2012-01-19 15:27 761WINDOWS PHONE 7使用必知 20 ... -
卸载――将vs2008彻底删除
2012-01-19 15:27 15112卸载――将vs2008彻底删除 2010年07月25日 ... -
我的日志
2012-01-17 05:14 781我的日志 7小时前 在座的所有人qt遐倏,赆伊∝ ... -
写给男孩懵懂的青春
2012-01-17 05:14 1233写给男孩懵懂的青春 7小时前 1. 清雅,脱俗。这是她带 ... -
木有标题
2012-01-17 05:14 762木有标题 7小时前 坐在山之巅,抬头欲抓住一片云彩,让它 ... -
准备买进!再创新低将是绝对的“空头陷阱”!
2012-01-17 05:14 806准备买进!再创新低将是绝对的“空头陷阱”! 7小时前 ... -
都2012了你还瞎晃悠啥呢
2012-01-17 05:14 735都2012了你还瞎晃悠啥呢 7小时前 ... -
自己做屏保
2012-01-16 04:07 991自己做屏保 2011年05月08 ... -
黑客基地联盟网站刷钻教程欢迎转载
2012-01-16 04:06 5702黑客基地联盟网站刷钻教程欢迎转载 2010年07月28日 ... -
Windows消息拦截
2012-01-16 04:06 1691Windows消息拦截 2010年02月06日 拦截应 ... -
雨林木风 Windows server 2003
2012-01-16 04:06 967雨林木风 Windows server 2003 2009年 ... -
【源于网络知识点收集】插件破解方法专辑(二)
2012-01-16 04:06 825【源于网络知识点收集】插件破解方法专辑(二) 2010年03 ...
相关推荐
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 获取传感器数据的示例程序。