eclipse转android studio问题及解决

一、libpng warning: iCCP: Not recognizing known sRGB profile that has been editedjava

ImageMagickandroid

for /f "tokens=*" %i in ('dir/s/b *.png') do "%fn%" "%i" -strip "%i"apache

http://my.oschina.net/addcn/blog/706604app

二、Error:(1, 1) 错误: 须要class, interface或enumgradle

error的缘由是java文件编码格式不对, 好比多是你以前这个文件是用GBK写的,后来复制到utf-8环境里编译,而文件里有些是隐藏的字符,很难找出来的。ui

http://blog.csdn.net/eiuly/article/details/48353285google

三、Error:(26, 9) Attribute application@icon value=(@drawable/logo) from AndroidManifest.xml:26:9编码

解决方法有如下2种:.net

方法1:在Manifest.xml的application标签下添加tools:replace="android:icon,android:theme"(多个属性用,隔开),记住在manifest根标签上加入xmlns:tools="http://schemas.android.com/tools"code

方法2:在build.gradle根标签上加上useOldManifestMerger true

http://blog.csdn.net/codezjx/article/details/38669939

四、Error:(7, 23) 错误: 程序包org.apache.http不存在Error:(8, 36) 错误: 程序包org.apache.http.client.utils不存在

在build.gradle(Module:app) 下加

useLibrary 'org.apache.http.legacy'

五、google-play-services.jar包的com.google.android.gms.maps.model.LatLng

compile 'com.google.android.gms:play-services:8.4.0'

六、Error:(590, 31) 错误: 找不到符号,符号: 方法 ceil(float),位置: 类 FloatMath

FloatMath.sqrtMath.sqrt替代

七、 ```Error:(153) Attribute "titleTextColor" already defined with incompatible format.

Error:(135) Original attribute defined here.```

自定义属性titleTextColor重命名titleTextColorRN

相关文章
相关标签/搜索