0
我正在嘗試編寫一個需要與SQLite數據庫通信的基於Processing的Android應用程序。爲此,我試圖使用Ketai Library,但我遇到了一個問題:我無法使用該庫,因爲Processing抱怨間接引用了android.content.Context;
。這是我的項目代碼。使用基於處理的Android應用程序查詢SQLite數據庫
import ketaisqlite.*;
KetaiSQLite database;
void setup()
{
// Preliminary Stuff
orientation(LANDSCAPE);
lights();
fullScreen(P3D);
// Database Connection
KetaiSQLite.load(this, "/sdcard/Android/database.sqlite", "database");
}
以下是錯誤控制檯中的兩條消息。
The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files
The method load(Context, String, String) from the type KetaiSQLite refers to the missing type Context The method load(Context, String, String) from the type KetaiSQLite refers to the missing type Context
試圖增加import android.context.Context;
產生另外一個問題:
Only a type can be imported. android.context.Context resolves to a package Only a type can be imported. android.context.Context resolves to a package
我該怎麼辦?如果有的話,我已經看過code for the library本身,無法弄清楚它有什麼問題。
這不提供問題的答案。要批評或要求作者澄清,在他們的帖子下留下評論 - 你總是可以評論你自己的帖子,一旦你有足夠的[聲譽](http://stackoverflow.com/help/whats-reputation),你會能夠[評論任何帖子](http://stackoverflow.com/help/privileges/comment)。 - [來自評論](/ review/low-quality-posts/11018779) – ndn
@ndn爲什麼這不是試圖回答這個問題? – Trilarion