Error building Android Library project using Python in Eclipse -


i'm trying build library project https://crosswalk-project.org.

i wish implement xwalkview in application use webrtc.

i followed following steps:

  1. downloaded stable arm release
  2. extracted core library archive (it android project default)
  3. i imported project eclipse
  4. the python script "prepare_r_java.py" responsible creating r.java files required project, without library won't complie.
  5. when try build, following error in eclipse

    errors occurred during build. errors running builder 'integrated external tool builder' on project'xwalk_core_library'. exception occurred executing command line. cannot run program "c:\users\abc\desktop\crosswalk-3.32.53.4-x86\xwalk_core_library\prepare_r_java.py"  (in directory "c:\users\abc\desktop\crosswalk-3.32.53.4-x86\xwalk_core_library"): createprocess error=193, %1 not valid win32 application exception occurred executing command line. cannot run program "c:\users\abc\desktop\crosswalk-3.32.53.4-x86\xwalk_core_library\prepare_r_java.py"  (in directory "c:\users\abc\desktop\crosswalk-3.32.53.4-x86\xwalk_core_library"): createprocess error=193, %1 not valid win32 application 

i have python, ant, java installed , path variable set , working fine.

what missing? there other method implement webrtc in android webview (non-native code)?

i downloaded arm build , encountered same error while importing xwalk_core_library eclipse. fixed executing prepare_r_java.py script externally through python , importing generated r.java file in classes referenced.

also, after looking around, found issue you've mentioned bug. check here.

turning off 'build automatically' in eclipse fixes it. 

edit : above method still threw error while exporting apk file , failed export process.

in order whole thing compile , work without nag, here's did before importing xwalk_core_library eclipse.

  1. delete .externaltoolbuildersfolder.

  2. edit .project file , delete following lines line no.18 27

         <buildcommand>         <name>org.eclipse.ui.externaltools.externaltoolbuilder</name>         <triggers>auto,full,incremental,</triggers>         <arguments>             <dictionary>                 <key>launchconfighandle</key>                 <value>&lt;project&gt;/.externaltoolbuilders/prepare_r_java.launch</value>             </dictionary>         </arguments>     </buildcommand> 
  3. edit build.xml , delete following line line no.27

       <import file="precompile.xml" /> 
  4. delete precompile.xml , prepare_r_java.py

now import library eclipse. :)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -