title: android emulator launch of worklight app fails with message "can't load wlclient.properties file"
body: <p>Since i first encountered this failure to start a worklight application in the android emulator, i have re-installed the ADT package, upgraded to Luna with reinstallation of the ecplipse plug-ins for ADT and worklight.  i import the project from the kepler instance and run the common app successfully.  The error message is pretty clear that it can't load the wlclient.properties file, but i can't figure out why.  i have changed the read-only attribute and granted everyone full control.  the wlclient.properties file does exist in the native assets folder and when i open it, there are no problems and the information seems right.  i am using a standard device definition and i have tried a new device as well.  Here is the stack dump from DDMS:</p>
  
  <pre><code>10-23 11:34:55.770: D/dalvikvm(1749): Not late-enabling CheckJNI (already on)
  10-23 11:34:55.850: W/ResourceType(1749): No known package when getting value for resource number 0x7f040000
  10-23 11:34:55.850: W/PackageManager(1749): Failure retrieving text 0x7f040000 in package com.JSONstore
  10-23 11:34:55.850: W/PackageManager(1749): android.content.res.Resources$NotFoundException: String resource ID #0x7f040000
  10-23 11:34:55.850: W/PackageManager(1749):     at android.content.res.Resources.getText(Resources.java:244)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ApplicationPackageManager.getText(ApplicationPackageManager.java:994)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.content.pm.ComponentInfo.loadLabel(ComponentInfo.java:85)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.os.Handler.dispatchMessage(Handler.java:102)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.os.Looper.loop(Looper.java:136)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.main(ActivityThread.java:5017)
  10-23 11:34:55.850: W/PackageManager(1749):     at java.lang.reflect.Method.invokeNative(Native Method)
  10-23 11:34:55.850: W/PackageManager(1749):     at java.lang.reflect.Method.invoke(Method.java:515)
  10-23 11:34:55.850: W/PackageManager(1749):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
  10-23 11:34:55.850: W/PackageManager(1749):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
  10-23 11:34:55.850: W/PackageManager(1749):     at dalvik.system.NativeStart.main(Native Method)
  10-23 11:34:55.850: W/ResourceType(1749): No known package when getting value for resource number 0x7f040000
  10-23 11:34:55.850: W/PackageManager(1749): Failure retrieving text 0x7f040000 in package com.JSONstore
  10-23 11:34:55.850: W/PackageManager(1749): android.content.res.Resources$NotFoundException: String resource ID #0x7f040000
  10-23 11:34:55.850: W/PackageManager(1749):     at android.content.res.Resources.getText(Resources.java:244)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ApplicationPackageManager.getText(ApplicationPackageManager.java:994)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.content.pm.ComponentInfo.loadLabel(ComponentInfo.java:94)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.os.Handler.dispatchMessage(Handler.java:102)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.os.Looper.loop(Looper.java:136)
  10-23 11:34:55.850: W/PackageManager(1749):     at android.app.ActivityThread.main(ActivityThread.java:5017)
  10-23 11:34:55.850: W/PackageManager(1749):     at java.lang.reflect.Method.invokeNative(Native Method)
  10-23 11:34:55.850: W/PackageManager(1749):     at java.lang.reflect.Method.invoke(Method.java:515)
  10-23 11:34:55.850: W/PackageManager(1749):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
  10-23 11:34:55.850: W/PackageManager(1749):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
  10-23 11:34:55.850: W/PackageManager(1749):     at dalvik.system.NativeStart.main(Native Method)
  10-23 11:34:55.900: D/AndroidRuntime(1749): Shutting down VM
  10-23 11:34:55.900: W/dalvikvm(1749): threadid=1: thread exiting with uncaught exception (group=0xb0d8fb20)
  10-23 11:34:55.950: E/AndroidRuntime(1749): FATAL EXCEPTION: main
  10-23 11:34:55.950: E/AndroidRuntime(1749): Process: com.JSONstore, PID: 1749
  10-23 11:34:55.950: E/AndroidRuntime(1749): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.JSONstore/com.JSONstore.JSONstore}: java.lang.RuntimeException: WLConfig(): Can't load wlclient.properties file
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.os.Handler.dispatchMessage(Handler.java:102)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.os.Looper.loop(Looper.java:136)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread.main(ActivityThread.java:5017)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at java.lang.reflect.Method.invokeNative(Native Method)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at java.lang.reflect.Method.invoke(Method.java:515)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at dalvik.system.NativeStart.main(Native Method)
  10-23 11:34:55.950: E/AndroidRuntime(1749): Caused by: java.lang.RuntimeException: WLConfig(): Can't load wlclient.properties file
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.common.WLConfig.&lt;init&gt;(WLConfig.java:90)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.common.WLConfig.createInstance(WLConfig.java:96)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.wlclient.api.WLClient.createInstance(WLClient.java:190)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.common.Logger.setContext(Logger.java:478)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.androidgap.api.WL.&lt;init&gt;(WL.java:54)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.worklight.androidgap.api.WL.createInstance(WL.java:84)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at com.JSONstore.JSONstore.onCreate(JSONstore.java:20)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.Activity.performCreate(Activity.java:5231)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
  10-23 11:34:55.950: E/AndroidRuntime(1749):     ... 11 more
  10-23 11:34:55.990: D/dalvikvm(1749): GC_CONCURRENT freed 267K, 10% free 2972K/3296K, paused 19ms+0ms, total 70ms
  </code></pre>
  
  <p>and here is the content of the wlclient.properties file.</p>
  
  <pre><code>wlServerProtocol = http
  wlServerHost = 10.99.12.160
  wlServerPort = 10080
  wlServerContext = /FunWith/
  wlAppId = JSONstore
  wlAppVersion = 1.0
  GcmSenderId = 
  enableSettings = false
  testWebResourcesChecksum = false
  ignoredFileExtensions =  
  webResourcesSize = 3462895
  wlUid = kiWaVxEDXAUfwn/fyz3V8w==
  wlPlatformVersion = 6.2.0.00.20140613-0730
  wlMainFilePath = index.html
  wlShareCookies = 
  wlShareUserCert = false
  </code></pre>
  
  <p>(i changed the host name to an ip address as a test.)</p>
  
  <p>Any ideas out there?</p>
  
  <p>Thanks,
  Parke</p>