Cordova android - How to replace custom build.gradle with generated
<p>I have a cordova project, I have added android platform in it. Now I need to use my build.gradle file instead of the one generated.</p>

<p>In the plugins.xml, I have the below code to do that.</p>

<pre><code>&lt;framework src="src/android/build.gradle" custom="true" type="gradleReference" /&gt;
</code></pre>

<p>But while adding plugin, this build.gradle has been put under the package.It looks like this.</p>

<pre><code>// PLUGIN GRADLE EXTENSIONS START
apply from: "com.test.Name/Name-build.gradle"
// PLUGIN GRADLE EXTENSIONS END
</code></pre>

<p>And I am getting below error in the build.gradle generated.</p>

<pre><code>Error:(89, 0) Cannot convert relative path libs to an absolute file.
</code></pre>

<p>I need my custom build.gradle replace the auto generated. Please tell me how to specify this in plugin.xml
The cordova version I use is 6.1.1</p>