Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16510

Android: The Google Play services resources were not found

    Details

    • Sprint:
      2014 Sprint 09 Tooling

      Description

      When I use module 'ti.map' and deploy application on android device. I get error from console :

      -- Start application log -----------------------------------------------------
      [ERROR] :  SELinux: Function: selinux_android_load_priority [0], There is no sepolicy file [INFO] :   TiApplication: (main) [0,0] checkpoint, app created.
      [INFO] :   TiApplication: (main) [48,48] Titanium 3.2.0 (2013/12/20 10:57 d9182d6)
      [ERROR] :  SELinux: 
      [ERROR] :  SELinux: Function: selinux_android_load_priority [1], There is no sepolicy version file 
      [ERROR] :  SELinux: 
      [ERROR] :  SELinux: Function: selinux_android_load_priority , loading version is VE=SEPF_GT-N7100_4.3_0016 
      [ERROR] :  SELinux: 
      [ERROR] :  SELinux: 
      [ERROR] :  SELinux: selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts 
      [INFO] :   TiDbHelper: (main) [83,131] No value in database for platform key: 'unique_machine_id' returning supplied default ''
      [INFO] :   TiDbHelper: (main) [4,135] No value in database for platform key: 'hardware_machine_id' returning supplied default ''
      [INFO] :   TiApplication: (main) [121,256] Titanium Javascript runtime: v8
      [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      [INFO] :   TiAnalyticsDb: (main) [38,38] Upgrading Database from 1 to 4
      [WARN] :   V8Object: Runtime disposed, cannot set property 'userAgent'
      [INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 14.016MB for 1536016-byte allocation
      [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.ai.whereami2.WhereAmIIiActivity@42824f28
      [ERROR] :  ViewSystem: ViewRootImpl #2 Surface is not valid.
      [WARN] :   dalvikvm: VFY: unable to resolve static field 944 (MapAttrs) in Lcom/google/android/gms/R$styleable;
      [ERROR] :  MoreInfoHPW_ViewGroup: Parent view is not a TextView
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 931 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 927 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 941 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 938 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 935 (common_google_play_services_network_error_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 933 (common_google_play_services_invalid_account_title) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 928 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 925 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 939 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 930 (common_google_play_services_install_text_tablet) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 929 (common_google_play_services_install_text_phone) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 926 (common_google_play_services_enable_text) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 940 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 937 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 934 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 932 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string;
      [WARN] :   dalvikvm: VFY: unable to resolve static field 936 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
      [ERROR] :  GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. 
      [ERROR] :  GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. 
      [WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41c70700)
      [ERROR] :  TiApplication: (main) [592,592] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ai.whereami2/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: API key not found.  Check that <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml; Titanium 3.2.0,2013/12/20 10:57,d9182d6 
      [ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ai.whereami2/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: API key not found.  Check that <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml 
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308) 
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2362) 
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.access$700(ActivityThread.java:168) 
      [ERROR] :  TiApplication: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329) 
      [ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:99) 
      [ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:137) 
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:5493) 
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invokeNative(Native Method) 
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Method.java:525) 
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1209) 
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1025) 
      [ERROR] :  TiApplication: 	at dalvik.system.NativeStart.main(Native Method) 
      [ERROR] :  TiApplication: Caused by: java.lang.RuntimeException: API key not found.  Check that <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml 
      [ERROR] :  TiApplication: 	at maps.af.ay.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.ay.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.ay.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.ay.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.al.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.bg.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at maps.af.bf.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at ebt.onTransact(SourceFile:107) 
      [ERROR] :  TiApplication: 	at android.os.Binder.transact(Binder.java:347)
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.internal.IMapFragmentDelegate$a$a.onCreateView(Unknown Source) 
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.SupportMapFragment$a.onCreateView(Unknown Source) 
      [ERROR] :  TiApplication: 	at com.google.android.gms.dynamic.a$4.b(Unknown Source) 
      [ERROR] :  TiApplication: 	at com.google.android.gms.dynamic.a.a(Unknown Source) 
      [ERROR] :  TiApplication: 	at com.google.android.gms.dynamic.a.onCreateView(Unknown Source) 
      [ERROR] :  TiApplication: 	at com.google.android.gms.maps.SupportMapFragment.onCreateView(Unknown Source) 
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:871) 
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083) 
      [ERROR] :  TiApplication: 	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:635) 
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1431) 
      [ERROR] :  TiApplication: 	at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:523) 
      [ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiBaseActivity.onStart(TiBaseActivity.java:1048) 
      [ERROR] :  TiApplication: 	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1188) 
      [ERROR] :  TiApplication: 	at android.app.Activity.performStart(Activity.java:5382) 
      [ERROR] :  TiApplication: 	... 11 more  
      [WARN] :   TiVerify: (Timer-0) [4421,5013] Verifying module licenses...
      [INFO] :   TiVerify: (Timer-0) [3877,8890] Succesfully verified module licenses
      [INFO] :   Process: Sending signal. PID: 11216 SIG: 9
      

      and this is my code to create mapview :

      var MapModule = require('ti.map');
       
      exports.ApplicationWindow = function() {
      	var self = Titanium.UI.createWindow({
      		exitOnClose : true,
      		modal : true,
      		backgroundColor : 'white'
      	});
       
      	var vContent = Titanium.UI.createView({});
       
      	var vInfo = Titanium.UI.createView({});
       
      	var vMap = Titanium.UI.createView({});
       
      	var map = MapModule.createView({
      		mapType : MapModule.NORMAL_TYPE
      	});
       
      	vMap.add(map);
      	vContent.add(vInfo);
      	vContent.add(vMap);
       
      	self.add(vContent);
       
      	return self;
      };
      
      

      but on iphone emulator it can run success.

      How to fix it? Thanks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                ai1love6 Vatthanachai Wongprasert
                Reviewer:
                Vishal Duggal (Inactive)
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18402
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code