You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (Jira)" <ji...@apache.org> on 2019/09/23 08:40:00 UTC

[jira] [Resolved] (CB-14006) documented cordova plugin resource location breaks builds

     [ https://issues.apache.org/jira/browse/CB-14006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile resolved CB-14006.
-------------------------------
    Resolution: Fixed

7.1.4 was updated to work as before, mapping old paths to new paths, so this should not be an issue.
But if you still face it, report it on https://github.com/apache/cordova-android/issues

> documented cordova plugin resource location breaks builds
> ---------------------------------------------------------
>
>                 Key: CB-14006
>                 URL: https://issues.apache.org/jira/browse/CB-14006
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: cordova-android, cordova-docs
>    Affects Versions: cordova-android-7.0.0
>            Reporter: bd
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: documentation
>
> The latest documentation for plugin.xml specifies an example target of "res/values/FooPluginStrings.xml" ( [https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#resource-file|https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#resource-file)] ) however this location causes errors as it implies the older project style as in those created pre cordova-android 7. Builds then fail.
> Specifically the presence of a res directory causes cordova-android to assume an eclipse / non android studio project in [cordova-android/framework/src/org/apache/cordova/]AndroidStudio.js:26 which in turn causes cordova to look for the [root]/AndroidManifest.xml via [cordova-android/framework/src/org/apache/cordova/]AndroidProject.js:96. However since cordova-android now no longer creates the [root]/AndroidManifest.xml file builds fail.
> I do not know where the new location should be. Poking arround android studio my best guess for this example would be "app/src/main/res/values/FooPluginStrings.xml" however I am unsure if this is actually correct.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org