Skip to content

2025-11-10 20:14:35.915 19634-19634 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 158 - Msg: Uncaught (in promise) Error: "Preferences" plugin is not implemented on android #2437

@aoneahsan

Description

@aoneahsan

Bug Report

Plugin(s)

  • Preferences
  • App

Capacitor Version

"@capacitor/android": "^7.4.4",
"@capacitor/app": "7.1.0",
"@capacitor/browser": "^7.0.2",
"@capacitor/clipboard": "^7.0.2",
"@capacitor/core": "7.4.4",
"@capacitor/device": "^7.0.2",
"@capacitor/dialog": "^7.0.2",
"@capacitor/filesystem": "^7.1.4",
"@capacitor/geolocation": "^7.1.5",
"@capacitor/haptics": "7.0.2",
"@capacitor/ios": "^7.4.4",
"@capacitor/keyboard": "7.0.3",
"@capacitor/preferences": "^7.0.2",
"@capacitor/status-bar": "7.0.3",
"@capacitor/toast": "^7.0.2",

PASTE OUTPUT HERE

a.app I register: id=0x3a700000792, importpid=-1
2025-11-10 20:32:07.938 22540-22658 mali_gralloc com.pfdevqa.app I register: id=0x3a700000793, importpid=-1
2025-11-10 20:32:07.940 22540-22658 mali_gralloc com.pfdevqa.app I register: id=0x3a700000794, importpid=-1
2025-11-10 20:32:07.959 22540-22609 Capacitor com.pfdevqa.app D Handling local request: https://localhost/assets/index-DNju4eYn.css
2025-11-10 20:32:07.988 22540-22566 Parcel com.pfdevqa.app W Expecting binder but got null!
2025-11-10 20:32:07.990 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/ - Line 4396 - Msg: Uncaught SyntaxError: Unexpected token 'export'
2025-11-10 20:32:07.996 22540-22551 OpenGLRenderer com.pfdevqa.app I Davey! duration=1160ms; Flags=1, FrameTimelineVsyncId=1008969, IntendedVsync=19837553478267, Vsync=19838586477937, InputEventId=0, HandleInputStart=19838599165694, AnimationStart=19838599188117, PerformTraversalsStart=19838603078732, DrawStart=19838657254232, FrameDeadline=19837570144934, FrameInterval=19838598788232, FrameStartTime=16661285, SyncQueued=19838662961579, SyncStart=19838663124079, IssueDrawCommandsStart=19838664266386, SwapBuffers=19838711181309, FrameCompleted=19838713959117, DequeueBufferDuration=27616, QueueBufferDuration=457039, GpuCompleted=19838713959117, SwapBuffersCompleted=19838712675617, DisplayPresentTime=0, CommandSubmissionCompleted=19838711181309,
2025-11-10 20:32:08.037 22540-22540 com.pfdevqa.app com.pfdevqa.app W type=1400 audit(0.0:22576): avc: denied { read } for name="u:object_r:unipnp_prop:s0" dev="tmpfs" ino=17172 scontext=u:r:untrusted_app:s0:c233,c256,c512,c768 tcontext=u:object_r:unipnp_prop:s0 tclass=file permissive=0 app=com.pfdevqa.app
2025-11-10 20:32:08.041 22540-22540 libc com.pfdevqa.app W Access denied finding property "persist.unipnp.debug"
2025-11-10 20:32:08.037 22540-22540 com.pfdevqa.app com.pfdevqa.app W type=1400 audit(0.0:22577): avc: denied { read } for name="u:object_r:unipnp_prop:s0" dev="tmpfs" ino=17172 scontext=u:r:untrusted_app:s0:c233,c256,c512,c768 tcontext=u:object_r:unipnp_prop:s0 tclass=file permissive=0 app=com.pfdevqa.app
2025-11-10 20:32:08.042 22540-22540 libc com.pfdevqa.app W Access denied finding property "persist.unipnp.debug"
2025-11-10 20:32:08.119 22540-22540 com.pfdevqa.app com.pfdevqa.app I hiddenapi: Accessing hidden field Landroid/content/pm/ApplicationInfo;->primaryCpuAbi:Ljava/lang/String; (runtime_flags=0, domain=platform, api=unsupported) from Lorg/chromium/android_webview/SystemStateUtil; (domain=app) using reflection: allowed
2025-11-10 20:32:08.948 22540-22540 Capacitor/Console com.pfdevqa.app I File: https://localhost/assets/index-CCX1ODyJ.js - Line 208 - Msg: Incompatible browser.
2025-11-10 20:32:09.084 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 1215 - Msg: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'exec')
2025-11-10 20:32:09.088 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 158 - Msg: Uncaught (in promise) Error: "Preferences" plugin is not implemented on android
2025-11-10 20:32:09.237 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 158 - Msg: Uncaught (in promise) Error: "App" plugin is not implemented on android
2025-11-10 20:32:09.247 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/ - Line 0 - Msg: Uncaught (in promise) Error: "App" plugin is not implemented on android
2025-11-10 20:32:09.365 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 208 - Msg: Error: "Preferences" plugin is not implemented on android
2025-11-10 20:32:09.366 22540-22540 Capacitor/Console com.pfdevqa.app E File: https://localhost/assets/index-CCX1ODyJ.js - Line 208 - Msg: React Router caught the following error during render Error: "Preferences" plugin is not implemented on android
2025-11-10 20:32:11.617 22540-22598 Capacitor com.pfdevqa.app D Handling local request: https://localhost/images/icon.svg
2025-11-10 20:32:13.353 22540-22685 ProfileInstaller com.pfdevqa.app D Installing profile for com.pfdevqa.app

Platform(s)

  • Android

Current Behavior

  • App not working
  • Errors

Expected Behavior

  • Works fine like IOS App

Code Reproduction

just add a new capacitor android project
here's a video showing the process
https://youtu.be/C_UBwI1IChc

Other Technical Details

"@capacitor-community/apple-sign-in": "^7.1.0",
"@capacitor/android": "^7.4.4",
"@capacitor/app": "7.1.0",
"@capacitor/browser": "^7.0.2",
"@capacitor/clipboard": "^7.0.2",
"@capacitor/core": "7.4.4",
"@capacitor/device": "^7.0.2",
"@capacitor/dialog": "^7.0.2",
"@capacitor/filesystem": "^7.1.4",
"@capacitor/geolocation": "^7.1.5",
"@capacitor/haptics": "7.0.2",
"@capacitor/ios": "^7.4.4",
"@capacitor/keyboard": "7.0.3",
"@capacitor/preferences": "^7.0.2",
"@capacitor/status-bar": "7.0.3",
"@capacitor/toast": "^7.0.2",

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions