[ 
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

        

Reply via email to