Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ENOENT: no such file or directory, open myPath\string.xml #607

Closed
sharifullahsh opened this issue Mar 21, 2018 · 7 comments
Closed

Comments

@sharifullahsh
Copy link

sharifullahsh commented Mar 21, 2018

I want to use cordova-plugin-firebase for phone verification.
I add the plugin as ionic doc, add google-service.json to my project, but when build for android it gives me the following error. I can build the project but when I call verifyPhoneNumber(phoneNumber, timeoutDuration) function, my app crash in my android device.

Preparing Firebase on Android
{ Error: ENOENT: no such file or directory, open 'D:\node\ionic\smsVerification\platforms\android\res\values\strings.xml'

@Shals08
Copy link

Shals08 commented Mar 22, 2018

After downloading the plugin change the ANDROID_DIR variable in the after_prepare.js file, which is in the scripts folder.
From ANDROID_DIR = 'platforms/android' TO ANDROID_DIR = 'platforms/android/app/src/main'.

@cesarcruzm
Copy link

thanks @Shals08 your solution did the trick!

@Edison4mobile
Copy link

@Shals08 Thanks very much. It's awesome.

@geekyguy18
Copy link

@Shals08 Thanks

@mongedecristo
Copy link

mongedecristo commented Apr 9, 2018

ALLOW ME TO USE CAPITAL LETTERS:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! YOU SAVED THE DAY, MAN (@Shals08 ) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@soumak77
Copy link
Contributor

please try again with version 1.0

@ARSHAD0141786
Copy link

Thanks @Shals08

anappdevelopment added a commit to anappdevelopment/cordova-plugin-firebase that referenced this issue Feb 1, 2019
MattiaPrimavera added a commit to Norberteam/cordova-plugin-firebase-lib that referenced this issue Jun 11, 2019
This fixes 'platforms/android/res/values/strings.xml' not found error, by applying
the fix suggested here: arnesson#607 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants