<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Here are the two logs, for in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119277#M75321</link>
    <description>&lt;P&gt;Here are the two logs, for the Build tab, with and without CW.&lt;/P&gt;

&lt;P&gt;It seems to me that the bug is still the same.&lt;/P&gt;

&lt;P&gt;Should I ask the lib developers to change something? Theirs Android native samples work under Eclipse but not under Android Studio, I dind't be able to use it in Android Studio for some gradle lack.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 10:07:35 GMT</pubDate>
    <dc:creator>Antonio_Za</dc:creator>
    <dc:date>2016-07-07T10:07:35Z</dc:date>
    <item>
      <title>Debug error on custom plugin library</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119273#M75317</link>
      <description>&lt;P&gt;I'm trying to develop my first plugin to communicate with an ethernet printer, on Android. I got the .jar library (customandroidapi.jar) from the constructor and the Android native samples too.&lt;/P&gt;

&lt;P&gt;Now, I prepared a draft plugin and I'm trying to adding it into my XDK project but the debug module gives me this error:&lt;BR /&gt;
	&lt;BR /&gt;
	//////////////////////////////////////////////////////////////////////////&lt;/P&gt;

&lt;P&gt;************* Completed processing the main config.xml file (after_prepare)&amp;nbsp; *****************&lt;BR /&gt;
	Running command: .../cordova_project/platforms/android/cordova/build --debug --buildConfig=.../cordova_project/build.json&lt;BR /&gt;
	ANDROID_HOME=.../android-sdk&lt;BR /&gt;
	JAVA_HOME=/usr/lib/jvm/java-8-oracle-amd64&lt;BR /&gt;
	Reading build config file: .../cordova_project/build.json&lt;BR /&gt;
	cp: copyFileSync: could not write to dest file (code=ENOTDIR):.../cordova_project/platforms/android/cordova-plugin-printers-fusion/xwalk16-customandroidapi.jar/build.gradle&lt;/P&gt;

&lt;P&gt;Running: .../cordova_project/platforms/android/gradlew cdvBuildDebug -b .../cordova_project/platforms/android/build.gradle --no-daemon&lt;BR /&gt;
	embedded&lt;BR /&gt;
	org.xwalk:xwalk_core_library:16+&lt;/P&gt;

&lt;P&gt;FAILURE: Build failed with an exception.&lt;/P&gt;

&lt;P&gt;* What went wrong:&lt;BR /&gt;
	A problem occurred configuring root project 'android'.&lt;BR /&gt;
	&amp;gt; Cannot evaluate module customandroidapi.jar : Configuration with name 'debug' not found.&lt;/P&gt;

&lt;P&gt;* Try:&lt;BR /&gt;
	Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.&lt;/P&gt;

&lt;P&gt;BUILD FAILED&lt;/P&gt;

&lt;P&gt;Total time: 12.619 secs&lt;/P&gt;

&lt;P&gt;.../cordova_project/platforms/android/cordova/node_modules/q/q.js:126&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw e;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;
	Error code 1 for command: .../cordova_project/platforms/android/gradlew with args: cdvBuildDebug,-b,.../cordova_project/platforms/android/build.gradle,--no-daemon&lt;BR /&gt;
	Command finished with error code 1: .../cordova_project/platforms/android/cordova/build --debug,--buildConfig=.../cordova_project/build.json&lt;BR /&gt;
	ERROR building one of the platforms: Error: .../cordova_project/platforms/android/cordova/build: Command failed with exit code 1&lt;BR /&gt;
	You may not have the required environment or OS to build this project&lt;BR /&gt;
	Error: .../cordova_project/platforms/android/cordova/build: Command failed with exit code 1&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; at ChildProcess.whenDone (.../cordova/cordova-cli/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; at emitTwo (events.js:87:13)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; at ChildProcess.emit (events.js:172:7)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; at maybeClose (internal/child_process.js:821:16)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)&lt;/P&gt;

&lt;P&gt;//////////////////////////////////////////////////////////////////////////&lt;/P&gt;

&lt;P&gt;Could someone please help me?&lt;BR /&gt;
	I'm using CLI 5.4.1 but I got errors even on CLI 5.1.1&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 15:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119273#M75317</guid>
      <dc:creator>Antonio_Za</dc:creator>
      <dc:date>2016-07-06T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Antonio -- usually the</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119274#M75318</link>
      <description>&lt;P&gt;Antonio -- usually the information that lead to the error is located above the point in the build log that you pasted into your post. Can you attach the entire detailed build log to your post (save it as a text file and attach it using the "Attach Files to Post" link below the forum edit window) so we can look more closely at the build problem.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 22:52:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119274#M75318</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-07-06T22:52:57Z</dc:date>
    </item>
    <item>
      <title>Thank you Paul, here is the</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119275#M75319</link>
      <description>&lt;P&gt;Thank you Paul, here is the complete debug log attached.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 22:57:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119275#M75319</guid>
      <dc:creator>Antonio_Za</dc:creator>
      <dc:date>2016-07-06T22:57:38Z</dc:date>
    </item>
    <item>
      <title>Antonio -- definitely appears</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119276#M75320</link>
      <description>&lt;P&gt;Antonio -- definitely appears to be something regarding your custom plugin. I'm not able to say precisely what is going wrong, I'm not an expert at building Cordova plugins, but these lines appear to be the critical element:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;Running command: .../cordova_project/platforms/android/cordova/build --debug --buildConfig=.../cordova_project/build.json
ANDROID_HOME=.../android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle-amd64
Reading build config file: .../cordova_project/build.json
cp: copyFileSync: could not write to dest file (code=ENOTDIR):.../cordova_project/platforms/android/cordova-plugin-printers-fusion/xwalk16-customandroidapi.jar/build.gradle

Running: .../cordova_project/platforms/android/gradlew cdvBuildDebug -b .../cordova_project/platforms/android/build.gradle --no-daemon
embedded
org.xwalk:xwalk_core_library:16+

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
&amp;gt; Cannot evaluate module customandroidapi.jar : Configuration with name 'debug' not found.
&lt;/PRE&gt;

&lt;P&gt;In particular, the part about the 'debug' configuration (earlier you'll see that the build command is including a --debug option). My guess is there is some requirement to include a 'debug' configuration in your JAR file (probably a variant of the library that includes debug symbols) to make this step work.&lt;/P&gt;

&lt;P&gt;It appears that you are trying to build for the Debug tab. Is this correct? What happens if you simply build with the Build tab? Do you get the same results? Try building with and without Crosswalk optimizations turned on.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 23:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119276#M75320</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-07-06T23:25:46Z</dc:date>
    </item>
    <item>
      <title>Here are the two logs, for</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119277#M75321</link>
      <description>&lt;P&gt;Here are the two logs, for the Build tab, with and without CW.&lt;/P&gt;

&lt;P&gt;It seems to me that the bug is still the same.&lt;/P&gt;

&lt;P&gt;Should I ask the lib developers to change something? Theirs Android native samples work under Eclipse but not under Android Studio, I dind't be able to use it in Android Studio for some gradle lack.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 10:07:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119277#M75321</guid>
      <dc:creator>Antonio_Za</dc:creator>
      <dc:date>2016-07-07T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Antonio -- if their sample</title>
      <link>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119278#M75322</link>
      <description>&lt;P&gt;Antonio -- if their sample app cannot be built using Android Studio (which is what Cordova CLI utilizes) then the XDK will also not be able to build it, because our build system is standard CLI, which relies on Android Studio. I guess the acid test would be to install Cordova CLI and see if you can successfully build a project using that. This requires that you also install Android Studio on your system.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:25:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Debug-error-on-custom-plugin-library/m-p/1119278#M75322</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-07-07T16:25:51Z</dc:date>
    </item>
  </channel>
</rss>

