我是Android环境的新手,我已经安装了eclipse和android开发工具。
我的openerp应用程序正在运行,我编码在#34; MainActivity.java" in" On create"方法,
import java.net.MalformedURLException;
import java.net.URL;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import org.apache.xmlrpc.client.*;
import org.apache.xmlrpc.client.XmlRpcClient;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
OpenErpConnect connection=null;
try {
URL loginUrl=new URL("http","192.xxx.x.xx",xxxx,"/xmlrpc/common");
XmlRpcClient client=new XmlRpcClient();
Integer id=(Integer)client.call("login","new_db","admin","123456");
connection=new OpenErpConnect(server,port,db,user,pass,id);
}
catch ( XMLRPCException e) {
Log.d(CONNECTOR_NAME,e.toString());
}
catch ( MalformedURLException e) {
Log.d(CONNECTOR_NAME,e.toString());
}
catch ( ClassCastException e) {
Log.d(CONNECTOR_NAME,e.toString());
}
return connection;
}
我遇到错误" Integer id=(Integer)client.call("login","new_db","admin","123456");
"
错误是,
The type org.apache.xmlrpc.common.XmlRpcController cannot be resolved. It is indirectly referenced from required .class files
我正在做什么我想从openERP
连接后想在Android应用程序中获得结果希望你的建议
由于