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:
- downloaded stable arm release
- extracted core library archive (it android project default)
- i imported project eclipse
- the python script "prepare_r_java.py" responsible creating r.java files required project, without library won't complie.
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.
delete
.externaltoolbuilders
folder.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><project>/.externaltoolbuilders/prepare_r_java.launch</value> </dictionary> </arguments> </buildcommand>
edit
build.xml
, delete following line line no.27<import file="precompile.xml" />
delete
precompile.xml
,prepare_r_java.py
now import library eclipse. :)
Comments
Post a Comment