2017-08-31 5 views
1

テスト用Googleマップアプリケーションに問題があります。 これは1台の電話Xiaomi Redme 3(5.1.1)でのみ完全に動作します。 しかし、同じコンピュータから別の携帯電話のサムスンS3ミニ(4.1.2)でデバッグモードで実行すると、それは動作しません、碑文Googleを持つ空白のウィンドウのみ。 また、Asus Zenphone 5(4.2.2)では動作しません。私のマニフェストファイルの下Googleマップは私の1台のテスト用電話機でしか動作しません

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="elcom.maps"> 

    <!-- 
    The ACCESS_COARSE/FINE_LOCATION permissions are not required to use 
    Google Maps Android API v2, but you must specify either coarse or fine 
    location permissions for the 'MyLocation' functionality. 
--> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> 


<application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 

    <!-- 
     The API key for Google Maps-based APIs is defined as a string resource. 
     (See the file "res/values/google_maps_api.xml"). 
     Note that the API key is linked to the encryption key used to sign the APK. 
     You need a different API key for each encryption key, including the release key that is used to 
     sign the APK for publishing. 
     You can define the keys for the debug and release targets in src/debug/ and src/release/. 
    --> 
    <meta-data 
      android:name="com.google.android.gms.version" 
      android:value="@integer/google_play_services_version" /> 
    <meta-data 
      android:name="com.google.android.geo.API_KEY" 
      android:value="AIza..1DM"/> 
    <activity 
      android:name=".MapsActivity" 
      android:label="@string/title_activity_maps"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN"/> 

      <category android:name="android.intent.category.LAUNCHER"/> 
     </intent-filter> 
    </activity> 
</application> 

また、Androidの監視ログ以下:

08-30 17:29:50.608 27197-27197/elcom.maps E/dalvikvm: Could not find class 'android.os.UserManager', referenced from method com.google.android.gms.common.zze.zzas 
08-30 17:29:50.608 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve check-cast 246 (Landroid/os/UserManager;) in Lcom/google/android/gms/common/zze; 
08-30 17:29:50.618 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zze.zzs 
08-30 17:29:50.618 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 482: Landroid/content/pm/PackageManager;.getPackageInstaller()Landroid/content/pm/PackageInstaller; 
08-30 17:29:50.638 27197-27197/elcom.maps E/dalvikvm: Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.internal.zzacw.zzg 
08-30 17:29:50.638 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve check-cast 27 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/internal/zzacw; 
08-30 17:29:50.698 27197-27197/elcom.maps I/zzai: Making Creator dynamically 
08-30 17:29:52.140 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createCredentialProtectedStorageContext, referenced from method hfi.createCredentialProtectedStorageContext 
08-30 17:29:52.140 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 935: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:52.140 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createDeviceProtectedStorageContext, referenced from method hfi.createDeviceProtectedStorageContext 
08-30 17:29:52.140 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 936: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:52.140 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createCredentialProtectedStorageContext, referenced from method com.google.android.chimera.ModuleContext.createCredentialProtectedStorageContext 
08-30 17:29:52.150 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 935: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:52.150 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createDeviceProtectedStorageContext, referenced from method com.google.android.chimera.ModuleContext.createDeviceProtectedStorageContext 
08-30 17:29:52.150 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 936: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:52.150 27197-27197/elcom.maps I/dalvikvm: Could not find method com.google.android.chimera.ContextThemeWrapper.createDisplayContext, referenced from method com.google.android.chimera.ModuleContext.createDisplayContext 
08-30 17:29:52.150 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 6176: Lcom/google/android/chimera/ContextThemeWrapper;.createDisplayContext (Landroid/view/Display;)Landroid/content/Context; 
08-30 17:29:52.160 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.Context.isCredentialProtectedStorage, referenced from method buc.a 
08-30 17:29:52.160 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 916: Landroid/content/Context;.isCredentialProtectedStorage()Z 
08-30 17:29:52.160 27197-27197/elcom.maps E/dalvikvm: Could not find class 'android.os.UserManager', referenced from method buc.a 
08-30 17:29:52.160 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve check-cast 355 (Landroid/os/UserManager;) in Lbuc; 
08-30 17:29:52.160 27197-27197/elcom.maps I/dalvikvm: Could not find method android.os.UserManager.isUserUnlocked, referenced from method buc.a 
08-30 17:29:52.160 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 1507: Landroid/os/UserManager;.isUserUnlocked()Z 
08-30 17:29:52.160 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method buc.b 
08-30 17:29:52.160 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 917: Landroid/content/Context;.isDeviceProtectedStorage()Z 
08-30 17:29:52.170 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method buc.c 
08-30 17:29:52.170 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 917: Landroid/content/Context;.isDeviceProtectedStorage()Z 
08-30 17:29:52.780 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve static field 350 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:52.780 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve static field 349 (SUPPORTED_32_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:52.780 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve static field 351 (SUPPORTED_ABIS) in Landroid/os/Build; 
08-30 17:29:52.780 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve static field 350 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:52.780 27197-27197/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x015e at 0x17 in Lbwc;.a 
08-30 17:29:52.780 27197-27197/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x015d at 0x26 in Lbwc;.a 
08-30 17:29:52.780 27197-27197/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x015e at 0x0d in Lbwc;.b 
08-30 17:29:53.721 27197-27197/elcom.maps I/Google Maps Android API: Google Play services client version: 10084000 
08-30 17:29:53.741 27197-27197/elcom.maps I/Google Maps Android API: Google Play services package version: 11302034 
08-30 17:29:53.871 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method ji.a 
08-30 17:29:53.871 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 2148: Landroid/content/pm/PackageManager;.getPackageInstaller()Landroid/content/pm/PackageInstaller; 
08-30 17:29:53.871 27197-27197/elcom.maps E/dalvikvm: Could not find class 'android.os.UserManager', referenced from method ji.a 
08-30 17:29:53.871 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve check-cast 452 (Landroid/os/UserManager;) in Lji; 
08-30 17:29:53.881 27197-27197/elcom.maps I/dalvikvm: Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.maps.api.android.lib6.drd.av.a 
08-30 17:29:53.881 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 2153: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z 
08-30 17:29:54.592 27197-27197/elcom.maps I/dalvikvm: Could not find method android.widget.RelativeLayout$LayoutParams.setMarginStart, referenced from method com.google.maps.api.android.lib6.impl.o.a 
08-30 17:29:54.592 27197-27197/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 2878: Landroid/widget/RelativeLayout$LayoutParams;.setMarginStart (I)V 
08-30 17:29:55.353 27197-27197/elcom.maps W/age: copyMemory is missing from platform - proto runtime falling back to safer methods. 
08-30 17:29:56.434 27197-27197/elcom.maps I/libblt_hw: Library opened (handle = 0, fd = 88) 
08-30 17:29:57.355 27197-27543/elcom.maps W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found. 
08-30 17:29:58.286 27197-27543/elcom.maps I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4 
08-30 17:29:58.286 27197-27543/elcom.maps I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4 
08-30 17:29:58.306 27197-27543/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createCredentialProtectedStorageContext, referenced from method ax.createCredentialProtectedStorageContext 
08-30 17:29:58.326 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 63: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:58.326 27197-27543/elcom.maps I/dalvikvm: Could not find method android.content.ContextWrapper.createDeviceProtectedStorageContext, referenced from method ax.createDeviceProtectedStorageContext 
08-30 17:29:58.336 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 64: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:58.336 27197-27543/elcom.maps I/dalvikvm: Could not find method e.createCredentialProtectedStorageContext, referenced from method f.createCredentialProtectedStorageContext 
08-30 17:29:58.336 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 365: Le;.createCredentialProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:58.336 27197-27543/elcom.maps I/dalvikvm: Could not find method e.createDeviceProtectedStorageContext, referenced from method f.createDeviceProtectedStorageContext 
08-30 17:29:58.336 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 366: Le;.createDeviceProtectedStorageContext()Landroid/content/Context; 
08-30 17:29:58.336 27197-27543/elcom.maps I/dalvikvm: Could not find method e.createDisplayContext, referenced from method f.createDisplayContext 
08-30 17:29:58.336 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve virtual method 367: Le;.createDisplayContext (Landroid/view/Display;)Landroid/content/Context; 
08-30 17:29:58.376 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve static field 76 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:58.376 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve static field 75 (SUPPORTED_32_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:58.376 27197-27543/elcom.maps W/dalvikvm: VFY: unable to resolve static field 76 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build; 
08-30 17:29:58.376 27197-27543/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x004c at 0x17 in Laa;.a 
08-30 17:29:58.376 27197-27543/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x004b at 0x26 in Laa;.a 
08-30 17:29:58.396 27197-27543/elcom.maps I/dalvikvm: DexOpt: unable to optimize static field ref 0x004c at 0x0d in Laa;.b 
08-30 17:34:06.705 27197-27197/elcom.maps W/InputMethodManager: Ignoring onBind: cur seq=-1, given seq=128 

どのようにこの問題を解決するには? 私は多くの似たような話題を読むが、結果は出ない。 標準のGoogleマップアプリケーションが問題のデバイスで正常に動作します。 私はアプリケーションを再インストールしようとしましたが、キャッシュをクリアしましたが、結果は同じです。

更新: APISコンソールでデバッグキーのSHA1を誤った値に変更すると、Xiaomiマーカーがグレーの空白画面に表示されますが、サムネイルではマーカーなしの灰色画面のみに表示されます。

+0

携帯電話以外の端末でインターネットにアクセスできますか?彼らは自分のマップアプリケーションで動作しますか? – wallyk

+0

はいインターネットにアクセスできます。標準的なGoogleマップは完全に動作しますが、私のアプリケーションでは動作しません。 – xdamir79

+0

週末以降、すべてのデバイスで動作するのは非常に奇妙な状況です! 2つ目のデバイスや他のデバイスの地図を有効にするのに数日かかることがありますか? – xdamir79

答えて

0

それはリリースバージョンだ場合、あまりにもここでキーを追加してください: enter image description here

+0

こんにちは、リリースバージョンではありません。私はデバッグとリリースキーについて知っています。 – xdamir79

+0

非常に奇妙な状況です。週末の後は、コードを変更せずにすべてのデバイスで動作しました! 2つ目のデバイスや他のデバイスの地図を有効にするのに数日かかることがありますか? – xdamir79

0

それはそれはすべてのコードを変更することなく、すべてのデバイスで働いていた週末の後、非常に奇妙な状況です! 2つ目のデバイスや他のデバイスの地図を有効にするのに数日かかることがありますか?

関連する問題