You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/28 12:20:00 UTC

[GitHub] [cordova-android] bhandaribhumin opened a new issue, #1469: App crashing Cordova-android 11

bhandaribhumin opened a new issue, #1469:
URL: https://github.com/apache/cordova-android/issues/1469

   # Bug Report
   
   Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
   
   ## Problem
   
   Application crash on startup 
   
   
   ### What is expected to happen?
   
   Application should work after change Cordova-android-11 with target sdk 32
   
   
   ### What does actually happen?
   
   Application crash on startup 
   
   
   ## Fixed using 
   
   After add `implementation 'androidx.work:work-runtime:2.7.0-alpha05'` to cordovaLib-> build.gradle file application works 
   
   
   ### Version information
   ```
   Ionic:
   
      Ionic CLI          : 6.20.1 (/Users/bhuminbhandari/.nvm/versions/node/v14.15.4/lib/node_modules/@ionic/cli)
      Ionic Framework    : ionic-angular 3.9.10
      @ionic/app-scripts : 3.2.3
   
   Cordova:
   
      Cordova CLI       : 11.0.0
      Cordova Platforms : android 11.0.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 22 other plugins)
   
   Utility:
   
      cordova-res (update available: 0.15.4) : 0.15.0
      native-run                             : 1.6.0
   
   System:
   
      Android SDK Tools : 26.1.1 (/Users/bhuminbhandari/Library/Android/sdk)
      ios-sim           : 8.0.2
      NodeJS            : v14.15.4 (/Users/bhuminbhandari/.nvm/versions/node/v14.15.4/bin/node)
      npm               : 6.14.10
      OS                : macOS Monterey
      Xcode             : Xcode 13.4.1 Build version 13F100
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] jcesarmobile commented on issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1469:
URL: https://github.com/apache/cordova-android/issues/1469#issuecomment-1233487103

   This is something plugins need to fix because is an SDK 32 requirement.
   I see @havesource/cordova-plugin-push have already fixed it, but hasn't released the fix to npm yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1469:
URL: https://github.com/apache/cordova-android/issues/1469#issuecomment-1198305819

   Error is coming from dependencies of plugins it seems, but it also states that the `:app` is currently compiled against android-29, which does not match either the default configuration or your pasted configuration.
   
   If you upgraded cordova-android simply via `npm install`, then you may need to `cordova platform remove android` / `cordova platform add android@11` so the native project starts from a clean slate. In-place platform upgrades aren't well supported and tends to cause issues.
   
   Otherwise you can try running `cordova clean android` to clean any built files to ensure they are rebuilt with the current compile settings.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] jcesarmobile closed issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
jcesarmobile closed issue #1469: App crashing Cordova-android 11
URL: https://github.com/apache/cordova-android/issues/1469


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1469:
URL: https://github.com/apache/cordova-android/issues/1469#issuecomment-1202348006

   > Thank you @breautek you are right this is due to some plugin dependancy. But this is a bit weird issue, all the plugins I used in the project I installed in the blank project of cordova and everything works, don't know what is the problem and where is the problem?
   
   If building on a blank cordova project works, then I'll try to let Cordova build the native project from scratch. Easiest way to do this is by removing the platform and re-adding it again, as noted in my above comment. Also if you were upgrading plugins, it might be best to remove them then re-add them as well, that way the native project gets configured from a clean slate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] bhandaribhumin commented on issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
bhandaribhumin commented on issue #1469:
URL: https://github.com/apache/cordova-android/issues/1469#issuecomment-1200919608

   Thank you @breautek you are right this is due to some plugin dependancy.
   But this is a bit weird issue, all the plugins I used in the project I installed in the blank project of cordova and everything works, don't know what is the problem and where is the problem? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] AndrWeisR commented on issue #1469: App crashing Cordova-android 11

Posted by GitBox <gi...@apache.org>.
AndrWeisR commented on issue #1469:
URL: https://github.com/apache/cordova-android/issues/1469#issuecomment-1226797128

   @bhandaribhumin Are you using @havesource/cordova-plugin-push by any chance? I have seen this "FLAG_IMMUTABLE or FLAG_MUTABLE" error come from that plugin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org