我有我的mac上運行的android開發工具,我需要使用JSON-RPC構建項目。關於新項目的Android noclassdeffounderror
我使用這個庫: http://software.dzhuvinov.com/json-rpc-2.0-client.html
我採取以下步驟: - 下載客戶端和基礎jar文件。 - 將它們拖到libs文件夾中。 - 將來自站點的示例代碼粘貼到主活動的onCreate函數中。
之後,我跑在模擬器中測試應用程序,它會產生以下錯誤消息:
12-08 17:41:40.271: E/AndroidRuntime(2119): java.lang.NoClassDefFoundError: com.thetransactioncompany.jsonrpc2.JSONRPC2Request
我在做什麼錯?
看到這個答案http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java – Jimi
確保你將jar文件添加到你的類路徑中。 – Jimi
我試過這些建議。當我嘗試編輯運行時配置時,唯一的選項卡是針對android運行時配置的'Android','Target','Common'。 –