今天在导入android工程的时候遇到了两个问题,都是因为版本的兼容想出的问题,第一个问题是Type Unable to resolve target 'android-7',这个问题直接用记事本打开project.properties 把target=android-7 修改为target=android-8 便可以解决。将工程关闭,然后重新打开,这个时候运行工程会出现第二个问题,Conversion
to Dalvik format failed with error 1。我在网上搜索类似的问题时,有一篇文章说的很详细,当我一步步做的时候发现问题仍然没有得到解决,在单独试的时候发现,只做一步把这个问题解决了:选择工程,build path -->configure build path -->library 删除引用低版本的SDK 。再次重新导入工程发现可以运行。
做android的开发中,总会去参考别人的例子,有时候总会出现一些兼容性的问题。有些问题可以很好的解决,有的就不见得能够很顺利的搞定了,其实最坏的结果就是用自己的版本重新把例子中的代码重新写一遍,用自己的版本去编译,这样也可以更好地理解了程序,也能更好地理解整个工程的思想流程。
分享到:
相关推荐
本文分析了丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决方法。分享给大家供大家参考,具体如下: 在eclipse开发Android项目时出现的很多问题都可以使用Project———>clean来...
andriod中如果引入jar包的方式不对就会出现... 结果控制台立刻报错:conversion to dalvik format failed with error 1。 而且项目上还会出现红叉,虽然项目里并没有错误。 clean一下,项目正常,但是bin里的apk文件
本文较为详细的总结了Android开发中Eclipse报错及对应处理方法。分享给大家供大家参考,具体如下:...附: 网上其他处理方法:《丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决方法》
Android项目导出时报错:conversion to dalvik format failed with error 1,用下载的Proguard将lib和bin覆盖eclipse下的sdk\tools\proguard的lib和bin文件夹,然后重新导出就成功了
结果控制台立刻报错:conversion to dalvik format failed with error 1。而且项目上还会出现红叉,虽然项目里并没有错误。clean一下,项目正常,但是bin里的apk文件和dex文件都没了,运行项目出现错误:Can not ...
Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 或者 UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: ...
Call to function with no prototype ---------------调用函数时没有函数的说明 Cannot modify a const object ---------------不允许修改常量对象 Case outside of switch ----------------漏掉了case 语句 Case...
对于 fatal error LNK1123: failure during conversion to COFF错误,网上很多都是说把什么“是”改成“否”,其实都是治标不治本。这里有个链接,让你清楚知道为啥出错,怎么解决。记得保留哦~
如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar】
android引入外部jar包弹出以下错误[2020...[2020-04-23 13:08:25 - Halloworld1] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/loopj/android/http/AsyncHttpClient$1;
如果报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;请删掉PalmCampus工程下lib包里的android-support-v4.jar
In this paper, a novel semi-automatic 2D-to-3D conversion method is presented to estimate the disparity maps for regular 2D video shots. Our method requires only a few user-scribbles on very sparse ...
Delphi's THandle type when a HWND is passed to a function. E.g.: if (DragDetectPlus(THandle(MyControl->Handle), Point(X, Y))) { ... } * Virtual File Stream formats can only be pasted from the ...
This book deals with broad aspects of the PWM dc-to-dc power conversion, covering both academic and engineering perspectives. This introductory chapter presents an overview of the PWM dc-to-dc power ...
解决安装vs2012后vs2010 LINK : fatal error LNK1123: failure during conversion to COFF Wrong version: 03/18/2010 01:16 PM 31,048 cvtres.exe Correct version: 02/21/2011 06:03 PM 31,056 cvtres.exe
2D to 3D Conversion with Motion-Type Adaptive DepthEstimation
font-spider, Smart webfont compression and format conversion tool
Logarithmic Voltage-to-Time Converter for Analog-to-Digital Signal ConversionThis book presents a novel logarithmic conversion architecture based on cross-coupled inverter. An overview of the current ...
--------------------------------------------------------------------------------...Map with errors mapped from fieldname (String) to Collection of String error messages ---------------------------------...