Build to Android device

4 posts, 0 answers
  1. John Leger
    John Leger avatar
    1 posts
    Member since:
    May 2009

    Posted 26 Nov 2013 Link to this post

    In simulator app works perfectly.
    When I build in cloud to Android, the app takes a real long time to unpack I see my splash screen appear then disappear to black and no app shows up.

    The debug.log file has this content in it... please help! :)

    [1126/141018:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/141535:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/141630:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/141910:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/142352:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/142455:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/142820:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/142934:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/143330:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/144844:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1126/145322:WARNING:resource_bundle.cc(303)] locale_file_path.empty()


    Here is the output from build console....
    C:\Users\John.Leger\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\pcfa2xyb.cac\Targets\Build.targets(133,3): error : String Android is not a valid DevicePlatform!
    Sending build request for project com.compmyplay.user with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
    AppIdentifier=com.go2Advertising.comcompmyplayuser
    ProjectName=com.compmyplay.user
    ProjectGuid=c887b1bc-3aff-450f-9c81-b945bca09d53
    Platform=Android
    MobileProvisionIdentifier=
    iOSCodesigningIdentity=
    Configuration=Debug
    FrameworkVersion=3.0.0
    CorePlugins=org.apache.cordova.AudioHandler;org.apache.cordova.battery-status;org.apache.cordova.camera;org.apache.cordova.console;org.apache.cordova.contacts;org.apache.cordova.device;org.apache.cordova.device-motion;org.apache.cordova.device-orientation;org.apache.cordova.dialogs;org.apache.cordova.file;org.apache.cordova.file-transfer;org.apache.cordova.geolocation;org.apache.cordova.globalization;org.apache.cordova.inappbrowser;org.apache.cordova.media-capture;org.apache.cordova.network-information;org.apache.cordova.splashscreen;org.apache.cordova.vibration
    AndroidPermissions=android.permission.CAMERA;android.permission.VIBRATE;android.permission.ACCESS_COARSE_LOCATION;android.permission.ACCESS_FINE_LOCATION;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS;android.permission.READ_PHONE_STATE;android.permission.INTERNET;android.permission.RECEIVE_SMS;android.permission.RECORD_AUDIO;android.permission.MODIFY_AUDIO_SETTINGS;android.permission.READ_CONTACTS;android.permission.WRITE_CONTACTS;android.permission.WRITE_EXTERNAL_STORAGE;android.permission.ACCESS_NETWORK_STATE;android.permission.ACCOUNT_MANAGER;android.permission.GET_ACCOUNTS;android.permission.MANAGE_ACCOUNTS;android.permission.BROADCAST_STICKY
    DeviceOrientations=Portrait;Landscape
    iOSStatusBarStyle=Default
    AndroidHardwareAcceleration=true
    iOSDeviceFamily=
    BundleVersion=1.0
    iOSDisplayName=
    AndroidVersionCode=1
    LiveSyncToken=bBEpxlu446w2JIOHSzp2Fd8CqUdHvVAKLgwBLJiODxF/5kUXA+ahrEkrZfPize6eBcU39jGJmlnpRa3na+pDZQ1q2fKUGCK2yuzjhtnsVLrd/i/w3caEirBRKdz1UKtk.
    Package is successfully built. Result is at Android.
    Downloading from Private_Build_Folder\com.compmyplay.user_2029835524\com.compmyplay.user\bin\Android\Debug\bin\comcompmyplayuser.apk to C:\Users\John.Leger\Documents\GitHub\com.cmpmyplay.user\mobile\com.compmyplay.user\com.compmyplay.user\bin\Debug\Android\comcompmyplayuser.apk.
    File downloaded successfully at C:\Users\John.Leger\Documents\GitHub\com.cmpmyplay.user\mobile\com.compmyplay.user\com.compmyplay.user\bin\Debug\Android\comcompmyplayuser.apk.
    Build on cloud finished.


  2. John
    John avatar
    2 posts
    Member since:
    Nov 2013

    Posted 27 Nov 2013 Link to this post

    I have set up with success my Apple mordor stuff with success for development for the time being.
    I built to my Android device and to my iPad device both with success. 
    Here is the messages in the debug.log file
    The first message warning is from Android. The second is from iPad. 
    [1127/064437:WARNING:resource_bundle.cc(303)] locale_file_path.empty()
    [1127/064943:ERROR:cef_context.cc(458)] No localized string available for id 18010

    Remote debugging through Weinre is returning a warning that the AppId is invalid. 
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 28 Nov 2013 Link to this post

    Hello John,

    These errors seem to be from Weinre which uses the Chromium Embedded Framework. jsHybugger would be a better option for remote debugging as it comes as Cordova plugin and allows you to set breakpoints to debug. If the problem was AppID, iOS would have been the only affected platform, as Android isn't really picky about it.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  4. John
    John avatar
    2 posts
    Member since:
    Nov 2013

    Posted 29 Nov 2013 Link to this post

    The problem was finally isolated using remote debugging tools. Specifically jshybugger. The errors were coming from requireJS. They would not occur inside the Simulator. We used the unminified version of requireJS and were able to pinpoint where the exceptions were occuring and fixed them. 
Back to Top