SHARE
TWEET

Untitled

a guest Jul 17th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <permission
  2.             android:name="my.package.name.permission.MAPS_RECEIVE"
  3.             android:protectionLevel="signature"/>
  4.  
  5.     <uses-permission android:name="my.package.name.permission.MAPS_RECEIVE"/>
  6.  
  7.     <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15"/>
  8.  
  9.     <uses-permission android:name="android.permission.INTERNET"/>
  10.     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  11.     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  12.     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  13.     <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
  14.  
  15.     <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
  16.  
  17.     <application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:hardwareAccelerated="true">
  18.  
  19.         <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="MY_API_KEY_HERE" />
  20.  
  21.         <activity android:name="MyActivity"
  22.                   android:label="@string/app_name">
  23.             <intent-filter>
  24.                 <action android:name="android.intent.action.MAIN"/>
  25.                 <category android:name="android.intent.category.LAUNCHER"/>
  26.             </intent-filter>
  27.         </activity>
  28.     </application>
  29. </manifest>
  30.    
  31. ERROR/AndroidRuntime(10182): FATAL EXCEPTION: main
  32.                 java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable
  33.                 at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source)
  34.                 at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source)
  35.                 at android.app.Activity.onCreateView(Activity.java:4716)
  36.                 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
  37.                 at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
  38.                 at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  39.                 at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  40.                 at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
  41.                 at android.app.Activity.setContentView(Activity.java:1881)
  42.                 at com.example.gm2.MyActivity.onCreate(MyActivity.java:16)
  43.                 at android.app.Activity.performCreate(Activity.java:5104)
  44.                 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
  45.                 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
  46.                 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
  47.                 at android.app.ActivityThread.access$600(ActivityThread.java:141)
  48.                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
  49.                 at android.os.Handler.dispatchMessage(Handler.java:99)
  50.                 at android.os.Looper.loop(Looper.java:137)
  51.                 at android.app.ActivityThread.main(ActivityThread.java:5039)
  52.                 at java.lang.reflect.Method.invokeNative(Native Method)
  53.                 at java.lang.reflect.Method.invoke(Method.java:511)
  54.                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
  55.                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
  56.                 at dalvik.system.NativeStart.main(Native Method)
  57.    
  58. <?xml version="1.0" encoding="utf-8"?>
  59.  
  60. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  61.              android:id="@+id/map"
  62.              android:layout_width="match_parent"
  63.              android:layout_height="match_parent" />
  64.    
  65. super.onCreate(savedInstanceState);
  66.     setContentView(R.layout.main);
  67.  
  68.     FragmentManager manager = getFragmentManager();
  69.     FragmentTransaction transaction = manager.beginTransaction();
  70.  
  71.     transaction.add(R.id.map, MapFragment.newInstance());          
  72.     transaction.commit();
  73.    
  74. ERROR/Google Maps Android API(10369): Authorization failure.
  75.    
  76. -keep class * extends java.util.ListResourceBundle {
  77.  
  78.    protected Object[][] getContents();
  79.  
  80. }
  81.    
  82. C:Usersyou>keytool -list -alias androiddebugkey -keystore .androiddebug.keyst
  83. ore -storepass android -keypass android
  84.    
  85. androiddebugkey, 15.10.2012, PrivateKeyEntry,
  86. Zertifikat-Fingerprint (SHA1): 66:XX:47:XX:1E:XX:FE:XX:DE:XX:EF:XX:98:XX:83:XX:9A:XX:23:A6
  87.    
  88. 66:XX:47:XX:1E:XX:FE:XX:DE:XX:EF:XX:98:XX:83:XX:9A:XX:23:A6;com.example.mypackagename
  89.    
  90. AZzaSyDhkhNotUseFullKey49ylKD2bw1HM
  91.    
  92. <meta-data
  93.         android:name="com.google.android.maps.v2.API_KEY"
  94.         android:value="AZzaSyDhkhNotUseFullKey49ylKD2bw1HM" />
  95.     <meta-data
  96.         android:name="com.google.android.gms.version"
  97.         android:value="@integer/google_play_services_version" />
  98.    
  99. <uses-feature
  100.     android:glEsVersion="0x00020000"
  101.     android:required="true" />
  102.    
  103. <uses-library
  104.         android:name="com.google.android.maps"
  105.         android:required="false" /> // This is required if you want your app to start in the emulator. I set it to false also if map is not an essential part of the application.
  106.    
  107. <permission
  108.     android:name="com.example.yourpackage.permission.MAPS_RECEIVE"
  109.     android:protectionLevel="signature" />
  110. <uses-permission android:name="com.example.yourpackage.permission.MAPS_RECEIVE" />
  111.    
  112. <uses-permission android:name="android.permission.INTERNET" />
  113. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  114. <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
  115.    
  116. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  117. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  118.    
  119. <fragment
  120.     android:id="@+id/map"
  121.     android:layout_width="match_parent"
  122.     android:layout_height="0dp"
  123.     android:layout_weight="1"
  124.     class="com.google.android.gms.maps.SupportMapFragment"
  125.     map:cameraTargetLat="47.621120"
  126.     map:cameraTargetLng="-122.349594"
  127.     map:cameraZoom="15" />
  128.    
  129. import android.support.v4.app.FragmentActivity;
  130.    
  131. xmlns:map="http://schemas.android.com/apk/res-auto"
  132.    
  133. keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
  134.    
  135. keytool -list -v -keystore "%USERPROFILE%.androiddebug.keystore" -alias androiddebugkey -storepass android -keypass android
  136.    
  137. com.app.triapp
  138.    
  139. defaultConfig {
  140.  
  141.         applicationId "com.app.live"
  142.     }
  143.    
  144. **<uses-library android:name="com.google.android.maps" />**
  145.    
  146. <application
  147.     android:icon="@drawable/icon"
  148.     android:label="@string/app_name" >
  149.     <uses-library android:name="com.google.android.maps" />
  150.  
  151.     <activity
  152.         android:name=".California"
  153.         android:label="@string/app_name"
  154.         android:screenOrientation="portrait" >
  155.         <intent-filter>
  156.             <action android:name="android.intent.action.MAIN" />
  157.  
  158.             <category android:name="android.intent.category.LAUNCHER" />
  159.         </intent-filter>
  160.     </activity>
RAW Paste Data
Top