【问题标题】:Is there a way to add just google-play-services.jar to make map v2 work?有没有办法只添加 google-play-services.jar 来使地图 v2 工作?
【发布时间】:2013-06-11 14:30:00
【问题描述】:

我只想将google-play-services.jar 添加到我的项目中,并在不将 google-play-services_lib 作为库添加到我的项目中的情况下使地图 v2 工作,这可能吗?

我尝试了很多次和方法,但每个人都会例外,驱逐:

FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source)
at com.google.android.gms.maps.SupportMapFragment.onInflate(Unknown Source)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:279)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:558)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
...

【问题讨论】:

    标签: android google-maps map google-maps-android-api-2


    【解决方案1】:

    不,因为它需要额外的资源,例如图像和样式,正如您可以从不只是 jar 文件中的错误看到的那样

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-10
      • 1970-01-01
      • 2013-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多