錯誤分析集合

2021-06-02 01:15:03 字數 1297 閱讀 9463

1、the method find_and_modity_text_view() from the type textactivity is never used locally

需要在oncreate()中宣告

2、出現程式強制關閉,可能是由於沒有宣告activity

3、如果按鈕出現在本地不可能呼叫的錯誤,很可能是沒有申明響應程式

<?xml version="1.0" encoding="utf-8" ?>

- " android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">

<?xml version="1.0" encoding="utf-8"?>

"android:layout_width="match_parent"

android:layout_height="match_parent"> 4、

link all references for a local rename (does not change  references in other files)

main cannot be resolved or is not a field

剛遇到這個糾結的問題,**都沒錯,r.layout.main總是在layout上游錯誤提示波浪線。在網上查了好多都是說clean一下工程 然後build工程就可以了,或者fix project properties 但是還是解決不了...

原因可能是新增檔案,比如xml檔案或者資源檔案時,系統自動新增了import android.r;android.r是系統提供的資源,r是應用程式的資源。

這時候只要刪除 import android.r;這條語句就可以了。

5、在向sd卡匯入檔案時,出現failed to push the item(s)的錯誤,可以將時間延長,重啟ecplise。eclipse->windwos->;preferences->android->ddms->adb connection time out (ms)

6、unhandled exception type filenotfoundexception,未經處理的ioexception異常型別 

迴避或捕獲這個異常就ok了

需要加try catch

trycatch (filenotfoundexception e) catch (ioexception e)

8、關於「cannot cast from view to checkbox」的問題

9、open檔案時,注意提前設定許可權

Hibernate 錯誤集合

出此錯,是因為你的hql語句中沒有?但你建立query時卻要為此hql設定引數值造成的。簡單舉個例子 比如你的hql是 from user 而你查詢時這樣寫 query query session.createquery hql query.setparameter 0,小張 這時執行查詢時就會報錯...

django 錯誤集合

外來鍵檢查 報錯 1452,cannot add or update a child row a foreign keyconstraint fails 解決方法 在setting檔案的databases中新增以下 取消外來鍵檢查 databases 2,埠占用 啟動django報錯 django ...

Android錯誤集合

org.gradle.process.internal.execexception a problem occurred starting process command users apang library android sdk ndk bundle toolchains mipsel lin...