我尝试使用 eclips 将“jts 拓扑套件”库与 android 一起使用:我使用“构建路径”引用库我编译代码
package com.example.xxx;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
GeometryFactory gf=new GeometryFactory();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}
应用程序在手机上启动,然后它停止我在日志中得到这个
10-08 22:10:13.777: W/dalvikvm(30262): VFY: unable to resolve new-instance 638 (Lcom/vividsolutions/jts/geom/GeometryFactory;) in Lcom/example/xxx/MainActivity;
怎么修,谢谢