Error on line 52.20 from file after_prepare.js
The folder path to compile looks like it has changed in Cordova-android 7.0 for
'app \ src \ main \ res \ values' error occurred while generating PLATFORM.ANDROID.stringsXml
Same problem here
Same problem!
For now, in my case, I decided to adjust the version of Android to 6.3.0
ionic cordova platform add [email protected]
This version did not have this problem.
The downgrade also works for me.
Changing this line
stringsXml: ANDROID_DIR + '/res/values/strings.xml'
to
stringsXml: ANDROID_DIR + '/app/src/main/res/values/strings.xml'
will fix the issue. There should be a check on the cordova android version so the path can be set accordingly as indeed the folder structure is changed as of 7.0.0:
https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html
@m6246 where to change
exact file path?
Changing this line
stringsXml: ANDROID_DIR + '/res/values/strings.xml'
to
stringsXml: ANDROID_DIR + '/app/src/main/res/values/strings.xml'
Please check out this pull request - https://github.com/arnesson/cordova-plugin-firebase/pull/570 It contains the fix to install the plugin for cordova android 7.0.0
Trying to fix this in commit 039e29e. please test!
Most helpful comment
Changing this line
stringsXml: ANDROID_DIR + '/res/values/strings.xml'
to
stringsXml: ANDROID_DIR + '/app/src/main/res/values/strings.xml'
will fix the issue. There should be a check on the cordova android version so the path can be set accordingly as indeed the folder structure is changed as of 7.0.0:
https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html