教育行業(yè)A股IPO第一股(股票代碼 003032)

全國(guó)咨詢/投訴熱線:400-618-4000

Android培訓(xùn)之錯(cuò)誤解決方法大合集(2)

更新時(shí)間:2016年11月29日16時(shí)17分 來(lái)源:傳智播客Android培訓(xùn)學(xué)院 瀏覽次數(shù):

出現(xiàn)這樣的提示,根本原因是Eclipse啟動(dòng)時(shí)檢測(cè)E:Program Filesandroid-sdk-windowstoolslibplugin.prop文件 文件內(nèi)容為:

begin plugin.prop

plugin.version=20.0.0

# end plugin.prop

這就很容易理解了,需求插件版本為20.0.0,這時(shí)候我們只需要改成:

begin plugin.prop

plugin.version=18.0.0

# end plugin.prop

OK了,重新啟動(dòng)下Eclipse,看看是不是解決了這個(gè)問(wèn)題

4 [Accessibility] Missing contentDescription attribute on image

今天使用了下ADT 16.0 在定義一個(gè)ImageVIew的時(shí)候 總是提示這個(gè)[Accessibility] Missing contentDescription attribute on image警告,雖說(shuō)可以不理 但總是感覺怪怪的,在網(wǎng)上一搜 發(fā)現(xiàn)原來(lái)這是ADT 16.0的新特性,在一些沒有文本顯示的控件里,如imageView和imageButton等,ADT會(huì)提示你定義一個(gè)android:contentDescription屬性,用來(lái)描述這個(gè)控件的作用。英文原文如下,如有翻譯的不對(duì)的地方,敬請(qǐng)批評(píng)指正。

Resolved this warning by setting attribute android:contentDescription for my ImageView

android:contentDescription="@string/desc"

Android Lint support in ADT 16 throws this warning to ensure that image widgets provide a contentDescription

This defines text that briefly describes content of the view. This property is used primarily for accessibility. Since some views do not have textual representation this attribute can be used for providing such.

Non-textual widgets like ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of the widget such that screen readers and other accessibility tools can adequately describe the user interface.

5 java.lang.NoClassDefFoundError: com.baidu.mapapi.BMapManager解決辦法

用百度地圖,可能把工程復(fù)制了些位置 出錯(cuò)了

解決辦法:

1.右擊項(xiàng)目->properties->Java Build Path->Order and Export,在需要引用的包前面打勾。

2.Project->Clean...

6 eclipse中提示 No Completions Available,Alt+/不自動(dòng)提示

window-> Preferences-> Java-> Editor-> Content Assist-> Advanced

上面的選項(xiàng)卡Select the proposal kinds contained in the 'default' content assist list中添加【Java Non-Type Proposals】


本文版權(quán)歸傳智播客Android培訓(xùn)學(xué)院所有,歡迎轉(zhuǎn)載,轉(zhuǎn)載請(qǐng)注明作者出處。謝謝!
作者:傳智播客Android培訓(xùn)學(xué)院
首發(fā):http://oisangadgets.com/Android

0 分享到:
和我們?cè)诰€交談!