class not found exception in android

后端 未结 3 621
旧巷少年郎
旧巷少年郎 2020-12-22 05:21

I am using following code for SQLConnection in android:

public void queryResultSet(String CommandSQL) throws ClassNotFoundException, java.sql.SQLException
           


        
3条回答
  •  死守一世寂寞
    2020-12-22 06:11

    If you use ProGuard, then your class may be dropped by it because it is used with reflection only. And if you don't, Android can still fail to load class for some reasons. Look at LogCat during your package installation.

提交回复
热议问题