2016-11-13 128 views
3

当我在我的应用程序中使用StreetView时出现此错误。 一切都很好,除了地图没有加载它在片段中的黑屏。Android StreetView not loading

E/DynamiteModule:无法加载DynamiteLoader: 抛出java.lang.ClassNotFoundException:没有找到 类 “com.google.android.gms.dynamite.DynamiteModule $ DynamiteLoaderClassLoader”

+0

确保授权通过正确。 – Galya

回答

0

这里是答案。 你的看法是走出屏幕的一侧。在主布局中,你可能忘记了定位。请按照这种布局。在主LinearLayout中,我给出了方向,现在Mapview进入屏幕。它会解决你的问题。

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:orientation="vertical" 
android:layout_height="match_parent"> 
<include layout="@layout/toolbar"/> 
<com.google.android.gms.maps.MapView 
    android:id="@+id/map" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" /> 
</LinearLayout> 
-1

我已经落在同一类型prblm.but解决不了it.Willü解决这个prblm?怎么样? 我已经有地址方向,但它没有解决。