Hi,
I set some variable string needed for my cordva library in my android project string.xml,
but error comes in gradle task :capacitor-android:verifyReleaseResources, cannot finding the variable.
Because of this error I cannot build with AppFlow. (Just running locally with Android Studio is working.)
For exmaple, the name of the variable needed called KAKAO_APP_KEY.
After cap sync android, in capacitor-cordova-android-plugins's AndroidManifest.xml, there is the code:
and in the app folder’s string.xml, there is kakao_app_key:
<string name="kakao_app_key">foo</string>
But because there is NO strings.xml in capacitor-cordova-android-plugins folder, there is error.
So I want to copy strings.xml file to capacitor-cordova-android-plugins folder with cap sync android.
I found a solution for similar case to this on this post:
I Solved this problem with these steps:
In the app proejct (app/src/main/res/values), create a new xml files for string resource and define the string variables pass to the cordova plugin (or maybe you can just use string.xml)
In the app’s AndroidManifest.xml (app/src/main/AndroidManifest.xml) add variables as meta-data for the variables of the plugin project(in the following, com.kakao.sdk.AppKey). You can find the same variable defined in capacitor-cordova-android-plugins's AndroidManifest.xml. (in the Project explorer, you can find it capacitor-cordova-android-plugins/src/main/AndroidManifest.xml).