我有這個代碼,以及上週四(04月19)工作:Android的JDBC錯誤
Connection conn = null;
Statement inst;
try {
System.out.println("Connected to the database");
Class.forName ("net.sourceforge.jtds.jdbc.Driver");
//217.126.108.151
conn = java.sql.DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/prueba;sa;sa1234");
inst = conn.createStatement();
System.out.println("Connected to the database");
inst.executeUpdate("INSERT INTO TIENDAS (NOMBRE) VALUES ('ZZZZZZZ') ");
conn.close();
} catch (Exception e) {
e.printStackTrace();
}
但在Android SDK的最近更新之後停止工作。
現在我得到這個錯誤:
了java.lang.RuntimeException:發現消息財產prop.servertype沒有消息資源
有誰知道爲什麼嗎?
在此先感謝。
只是一個膝蓋混蛋的答案在這裏,但你有沒有清理你的項目,並重新編譯?我已經看到了這一點,並且在更新之後現在經常清理乾淨。 – cstrutton 2012-04-25 07:32:45
感謝您的回覆,但問題仍然存在。同樣的錯誤。 – TheVanix 2012-04-25 07:45:18