Closed jackxu2011 closed 7 years ago
in /platforms/android/project.properties remove all other com.android.support:support and com.android.support:appcompat and leave the latest ones. as:
cordova.system.library.9=com.android.support:support-v13:26.+
cordova.system.library.7=com.android.support:appcompat-v7:26.+
thanks @jalescardoso this help me .
Hi guys, I am getting this exact issue and used the above two support libraries but now I am getting the below problem -
08-10 23:34:51.206 21490-21490/com.*. E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 17742232)
Any idea what we can do to debug this?
We tried this with a fresh project with below package.json. I am getting the same error as above.
{
"name": "picker",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "~4.11.0",
"@ionic-native/image-picker": "^4.11.0",
"@ionic-native/splash-screen": "~4.11.0",
"@ionic-native/status-bar": "~4.11.0",
"@ionic/storage": "2.1.3",
"cordova-android": "7.1.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.2",
"cordova-plugin-ionic-webview": "^2.0.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-telerik-imagepicker": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-support-google-services": "^1.1.0",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"phonegap-plugin-multidex": "^1.0.0",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.11",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-telerik-imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "your usage message"
},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"android"
]
}
}
Same error here, I think it may occurs by a conflict with ionic background geolocation fetch plugin
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: FATAL EXCEPTION: mainjava.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in base.apk)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:81)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:71)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:67)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.Toolbar.setTitle(Toolbar.java:753)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ToolbarWidgetWrapper.setTitleInt(ToolbarWidgetWrapper.java:261)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ToolbarWidgetWrapper.setWindowTitle(ToolbarWidgetWrapper.java:243)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ActionBarOverlayLayout.setWindowTitle(ActionBarOverlayLayout.java:621)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.onTitleChanged(AppCompatDelegateImplV9.java:631)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:328)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.synconset.MultiImageChooserActivity.onCreate(MultiImageChooserActivity.java:130)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Activity.performCreate(Activity.java:7232)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Activity.performCreate(Activity.java:7221)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2964)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.os.Handler.dispatchMessage(Handler.java:106)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.os.Looper.loop(Looper.java:201)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.main(ActivityThread.java:6864)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at java.lang.reflect.Method.invoke(Native Method)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
already tried to epurate the project.properties manually for a test without success.
@
Same error here, I think it may occurs by a conflict with ionic background geolocation fetch plugin
04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: FATAL EXCEPTION: mainjava.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in base.apk) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:81) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:71) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:67) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.Toolbar.setTitle(Toolbar.java:753) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ToolbarWidgetWrapper.setTitleInt(ToolbarWidgetWrapper.java:261) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ToolbarWidgetWrapper.setWindowTitle(ToolbarWidgetWrapper.java:243) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.widget.ActionBarOverlayLayout.setWindowTitle(ActionBarOverlayLayout.java:621) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.onTitleChanged(AppCompatDelegateImplV9.java:631) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:328) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.synconset.MultiImageChooserActivity.onCreate(MultiImageChooserActivity.java:130) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Activity.performCreate(Activity.java:7232) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Activity.performCreate(Activity.java:7221) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2964) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.os.Handler.dispatchMessage(Handler.java:106) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.os.Looper.loop(Looper.java:201) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at android.app.ActivityThread.main(ActivityThread.java:6864) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at java.lang.reflect.Method.invoke(Native Method) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 04-06 00:44:58.779 13234 13234 E com.marianhello.logging.UncaughtExceptionLogger: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
already tried to epurate the project.properties manually for a test without success.
Maybe you can try the pulgin https://github.com/dpa99c/cordova-android-support-gradle-release to use a specific version Android Support libraries
I thank you for the answer.
From further operation, got back on my /platforms/android/project.properties
configuration file and removed all the v4
platform reference, and the error is now gone.
I didn't tried your suggested plugin to work right now. It would be great to be able to obtain the same result as previous explained by config.xml or plugin.
cordova-andorid 6.4.0 where invoke the plugin get the error bellow: