轉(zhuǎn)載自:http://m.blog.csdn.net/article/details?id=7802403
問(wèn)題1. java.lang.RuntimeException: Failed to register input channel. Check logs for details.
解決 這個(gè)問(wèn)題應(yīng)是程序加載(Launcher Pro) 時(shí)爆出的,LP是一個(gè)主頁(yè)替代工具,它在程序加載時(shí),當(dāng)沒(méi)有釋放一些應(yīng)當(dāng)釋放的資源就會(huì)出現(xiàn)
理解起來(lái)確有深?yuàn)W之處,此問(wèn)題沒(méi)有真正解決,權(quán)當(dāng)先記下會(huì)出現(xiàn)這種情況,備忘
問(wèn)題2. An internal error occurred during: "Launching New_configuration".
Path for project must have only one segment.
解決: 在Eclipse中按照如下操作
Project -> Properties -> Run/Debug Settings:
1. select "Launching New_configuration"
2. Delete
3. OK
問(wèn)題3. java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
分析mInflater.inflate(R.layout.eg_refresh_message, this, false);
問(wèn)題4. AndroidRuntime(1925): java.util.MissingFormatArgumentException: Format specifier: 40s
分析與解決:出現(xiàn)問(wèn)題的地方 可能為 String m = String.format(msg, args);
在msg 中出現(xiàn)了%s 通配符,但在args 沒(méi)有對(duì)應(yīng)的值來(lái)匹配,就會(huì)報(bào)錯(cuò),因此要檢查msg 的內(nèi)容,看是否出現(xiàn)% 類似的通配符
問(wèn)題5. Activity com.xxx.XxxActivity has leaked windowcom.android.internal.policy.impl.PhoneWindow$DecorView@426f8510 that was originally added here
分析與解決:
重寫Activity的onDestroy方法,在方法中調(diào)用dismiss來(lái)解除對(duì)ProgressDialog等的引用。
可參考以下分析的原因: http://www.cnblogs.com/royenhome/archive/2011/05/20/2051879.html
問(wèn)題6. Installation error: INSTALL_FAILED_UID_CHANGED
[2014-08-31 10:18:00 - ***********] Please check logcat output for more details.
[2014-08-31 10:18:00 - ***********] Launch failed on device: 10.1.53.49:5555
.........
New package not yet registered with the system. Waiting 3 seconds before next attempt.
運(yùn)行程序時(shí)出現(xiàn)此錯(cuò)誤
可參考以下解決的方法: Try this Project->Clean in eclipse, and the deploy it again.
問(wèn)題7. 在運(yùn)行Java Web工程時(shí),出現(xiàn)錯(cuò)誤 java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
分析與解決: 出現(xiàn)這種問(wèn)題是因?yàn)閖ar包不全,應(yīng)該包含
commons-beanutils-1.8.3.jar
commons-lang-2.5.jar
ezmorph-1.0.6.jar
json-lib-2.3-jdk15.jar
commons-logging-1.1.1.jar
commons-collections 3.2
問(wèn)題8. SDK更新后 運(yùn)行程序報(bào)錯(cuò)Location of the Android SDK has not been setup in the preferences
解決方法 : 請(qǐng)參見 http://my.eoe.cn/833563/archive/4239.html
問(wèn)題9. 2016-01-06 16:17:36.296: E/AndroidRuntime(10198): java.lang.IllegalStateException: Could not create an EGL context. eglCreateContext failed with error: EGL_SUCCESS
解決方法: 出現(xiàn)這個(gè)錯(cuò)誤, 需要重啟模擬器 或者設(shè)備
問(wèn)題10: 在使用 android-async-http-1.4.9.jar 包時(shí),
報(bào)錯(cuò): The type cz.msebera.android.httpclient.HttpResponse cannot be resolved. It is indirectly referenced from required .class files
解決方法:下載httpclient-4.3.6.jar包, 導(dǎo)進(jìn)去即可.
在以下地址下載:http://mvnrepository.com/artifact/cz.msebera.android/httpclient/4.3.6