You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joel Hegg (JIRA)" <ji...@apache.org> on 2012/07/02 18:37:23 UTC

[jira] [Created] (CB-993) Android plugin problems upgrading to 1.9.0

Joel Hegg created CB-993:
----------------------------

             Summary: Android plugin problems upgrading to 1.9.0
                 Key: CB-993
                 URL: https://issues.apache.org/jira/browse/CB-993
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.9.0
            Reporter: Joel Hegg
            Assignee: Joe Bowser
            Priority: Blocker


I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:

1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.

2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:

07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
..
07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp

[DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
[DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012

3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.

4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-993:
--------------------------

    Component/s: Docs
       Assignee: Joe Bowser  (was: Simon MacDonald)
    
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Docs
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Joe Bowser
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410712#comment-13410712 ] 

Simon MacDonald commented on CB-993:
------------------------------------

FYI, I already checked in a fix for bullet 2 and working on a shim to support older plugins.
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Docs
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Joe Bowser
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald reopened CB-993:
--------------------------------

      Assignee: Simon MacDonald  (was: Joe Bowser)

I'm going to use this issue to check in the shim.
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Docs
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Simon MacDonald
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-993:
--------------------------

    Priority: Major  (was: Blocker)

While we aren't responsible for 3rd party plugins, we should make keeping up to date less painful.
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Simon MacDonald
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-993.
---------------------------

    Resolution: Fixed

Added instructions to edge docs to warn people of this issue with third party plugins.
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Docs
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Joe Bowser
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-993:
--------------------------

    Fix Version/s: 2.0.0
    
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Simon MacDonald
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald reassigned CB-993:
----------------------------------

    Assignee: Simon MacDonald  (was: Joe Bowser)
    
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Simon MacDonald
>            Priority: Blocker
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Joel Hegg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405118#comment-13405118 ] 

Joel Hegg commented on CB-993:
------------------------------

Related discussion for the Facebook plugin: https://github.com/davejohnson/phonegap-plugin-facebook-connect/issues/170
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-993) Android plugin problems upgrading to 1.9.0

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-993.
--------------------------------

    Resolution: Fixed

I checked in a shim that will allow existing plugins to work unmodified. Or as unmodified as I could make it as I could not test each and every plugin.
                
> Android plugin problems upgrading to 1.9.0
> ------------------------------------------
>
>                 Key: CB-993
>                 URL: https://issues.apache.org/jira/browse/CB-993
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Docs
>    Affects Versions: 1.9.0
>            Reporter: Joel Hegg
>            Assignee: Simon MacDonald
>             Fix For: 2.0.0
>
>
> I tried to upgrade my Android project from 1.8.1 to 1.9.0 and ran into a bunch of plugin problems:
> 1) http://docs.phonegap.com/en/1.9.0/guide_upgrading_android_index.md.html#Upgrading%20Cordova%20Android wasn't updated for 1.9.0. It's possible it would have included directions for avoiding the rest of the problems below.
> 2) If I just use what's listed in framework/res/xml/plugins.xml my app will start. If I add GoogleAnalyticsTracker back in my app crashes. I see the stack trace and messages below:
> 07-02 12:29:04.229: E/AndroidRuntime(11041): FATAL EXCEPTION: Thread-20
> 07-02 12:29:04.229: E/AndroidRuntime(11041): java.lang.StackOverflowError
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:943)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> ..
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.getContext(DroidGap.java:944)
> 07-02 12:29:04.229: E/AndroidRuntime(11041): 	at org.apache.cordova.DroidGap.get
> 07-02 12:29:04.269: D/dalvikvm(11041): GC_FOR_MALLOC freed 1027K, 52% free 3973K/8135K, external 2734K/2773K, paused 26ms
> 07-02 12:29:04.269: W/ActivityManager(498):   Force finishing activity com.decide.android/com.decide.website.phonegap.DecideApp
> [DEPRECATION NOTICE] The "PhoneGap" global will be removed in version 2.0, please use lowercase "cordova". at file:///android_asset/www/js/cordova-1.9.0.js:331
> [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///android_asset/www/js/cordova-1.9.0.js:294
> Error: SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/js/cordova-1.9.0.js:1012
> 3) BarcodeScanner.java fails to compile due to an error on line 139. It looks like CordovaInterface no longer implements startActivity. If I change "this.ctx" to "this.cordova.getActivity()" it seems to work. Something worth adding to the upgrade guide.
> 4) The Facebook plugin file ConnectPlugin.java fails to compile due to errors on lines 110 and 183. It looks like CordovaInterface no longer implements runOnUiThread. If I change "this.ctx" to "this.cordova.getActivity()" it compiles, but at runtime it gives me a similar stack trace to GoogleAnalyticsTracker in #2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira