Capacitor: Android 'tabs' starter: Capacitor: Unable to read file at path public/plugins

Created on 21 Aug 2019  路  10Comments  路  Source: ionic-team/capacitor

Description of the problem:
The starter works fine under the Chrome browser, but crashes or shows a white screen on some Android devices.

logcat:
Capacitor: Unable to read file at path public/plugins
Capacitor/Plugin/Browser: Error binding to custom tabs service

Affected platform

  • [x] Android
  • [ ] iOS
  • [ ] electron
  • [ ] web

OS of the development machine

  • [x] Windows
  • [ ] macOS
  • [ ] linux

Other information:
Tested on Android Emulator and real devices - API 21, 22, 25

Capacitor version:
"@capacitor/android" = 1.1.1
"@capacitor/core" = 1.1.1
"@capacitor/cli" = 1.1.1

node version:
v12.3.1

npm version:
6.4.1

CocoaPods version:
-

Steps to reproduce:

ionic start itest tabs
ionic build
ionic capacitor sync android

Link to sample project:

https://github.com/appde/itest

Most helpful comment

i have same issue,How can it be solved

All 10 comments

None of those should crash the app.
In which devices is it failing?

Just tested Genymotion 7.1 (API 25) and 5.0 (API 21) - 5.0 shows the white screen forever, 7.1 crashes.
And both of them seemed to have the same logcat messages.

The white screen on genymotion is probably related to not having the system webview up to date.

Experiencing the same issue using the tabs starter with Android API 24 and earlier. API 25 and up works as expected.

i have same issue,How can it be solved

same issue E/Capacitor: Unable to read file at path public/plugins

I had this issue E/Capacitor: Unable to read file at path public/plugins above, webDir in capacitor.config.json was set to src instead of www.

After fixing that, rebuilding the android studio project I could deploy again without error.

What are you using @WolfieXIII
My build has no www folder, it's build (default project)

@jcesarmobile It's not only about crashing or not. If you don't have cordova plugins, is it correct to have an error in logs ?

  • This problem occurs if we are using blank application as well
  • This is due to no plugin in the application
  • Added one plugin the problem fixed
npm install com-darryncampbell-cordova-plugin-intent
npm install @ionic-native/web-intent
ionic cap sync
Was this page helpful?
0 / 5 - 0 ratings

Related issues

moberwasserlechner picture moberwasserlechner  路  3Comments

MatanYadaev picture MatanYadaev  路  3Comments

gnesher picture gnesher  路  3Comments

natevw picture natevw  路  3Comments

peterpeterparker picture peterpeterparker  路  3Comments