ZSP_720 2015-08-15 03:17 采纳率: 0%
浏览 1850

Arcgis for Android 开发遇到问题,求帮忙解决

Arcgis for Android 开发遇到了at com.esri.android.map.MapView.(Unknown Source),怎么解决
图片说明

Layout
android:id="@+id/secondmapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

Activity
com.esri.android.map.MapView esrimapview;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.second);
esrimapview = (com.esri.android.map.MapView) findViewById(R.id.secondmapview);
String url = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer";
ArcGISTiledMapServiceLayer arcGISTiledMapServiceLayer = new ArcGISTiledMapServiceLayer(url);
esrimapview.addLayer(arcGISTiledMapServiceLayer);
}

  • 写回答

2条回答 默认 最新

  • 韩小转 2015-08-15 03:20
    关注

    你的包导了吗?
    参考:http://www.2cto.com/kf/201310/251175.html

    评论

报告相同问题?

悬赏问题

  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码