我是法国人,我尝试使用Google地图API V2 for Android手机覆盖创建软件。
我在编译后发出错误消息,因为3周后我就解决了这个问题(包不存在)。
有人可以帮助我吗?
问候。
这是错误: Echec delacréationdel'application Android。
Ligne de commande : "C:\Program Files\Java\jdk1.6.0_37\bin\javac.exe" -encoding UTF-16LE -nowarn -source 1.5 -target 1.5 -d bin\classes -bootclasspath "C:\Program Files\Android\android-sdk\platforms\android-18\android.jar" gen\com\pcsoft\android_trace_sur_carte\*.java src\com\pcsoft\android_trace_sur_carte\wdgen\*.java gen\com\google\android\gms\*.java -classpath "libs;libs\google-play-services.jar"
Erreur retournée :
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:27: package com.google.android.maps does not exist
import com.google.android.maps.GeoPoint;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:29: package com.google.android.maps does not exist
import com.google.android.maps.GeoPoint;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:30: package com.google.android.maps does not exist
import com.google.android.maps.*;//GeoPoint;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:49: package com.google.android.maps does not exist
import com.google.android.maps.*;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:163: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
private static List<GeoPoint> path;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:165: cannot find symbol
symbol : class MapView
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
private static MapView vMap;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:169: cannot find symbol
symbol : class Overlay
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
public static class RoutePathOverlay extends Overlay {
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:174: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
private final List<GeoPoint> m_arPoints;
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:176: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
public RoutePathOverlay(List<GeoPoint> points, int pathColor, int nOpacity, Paint.Style clStyle, int nWidth) {
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:193: cannot find symbol
symbol : class MapView
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) {
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:124: cannot find symbol
symbol : class MapView
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
vMap = (MapView) getView(sCarte);
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:153: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
path = new ArrayList<GeoPoint>();
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:194: cannot find symbol
symbol : class Projection
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
Projection projection = mapView.getProjection();
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:200: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
GeoPoint gPointA = m_arPoints.get(i);
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:209: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace.RoutePathOverlay
GeoPoint gPointB = m_arPoints.get(i-1);
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:236: non-static variable super cannot be referenced from a static context
return super.draw(canvas, mapView, shadow, when);
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:348: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
path = new ArrayList<GeoPoint>();
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:352: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
GeoPoint point = new GeoPoint((int)(lat * 1E6), (int)(lng * 1E6));
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:352: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
GeoPoint point = new GeoPoint((int)(lat * 1E6), (int)(lng * 1E6));
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:1067: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
GeoPoint p = new GeoPoint((int) (((double) lat / 1E5) * 1E6),
^
src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:1067: cannot find symbol
symbol : class GeoPoint
location: class com.pcsoft.android_trace_sur_carte.wdgen.GWDCPCOL_CarteTrace
GeoPoint p = new GeoPoint((int) (((double) lat / 1E5) * 1E6),
^
21 errors
答案 0 :(得分:0)
GeoPoint
,MapView
是类路径中不存在的几个类。将它们添加到你的claasspath。
<强>更新强> 假设您使用的是Eclipse,请执行以下操作以导入Google Map API