Hello guys,
I have an existing Cordova app, which was building all fine; however, the
look & feel suck in old Android devices.
As this is a requirement (I'm porting our enterprise CRM to mobile), I
found that Crosswalk could help me fix such problems.
I have followed these instructions in order to migrate it to Crosswalk:
https://crosswalk-project.org/documentation/cordova/migrate_an_application.html#Migrate-using-command-line-tools
What I did is:
rm -rf platforms
cordova platform add android
cd platforms/android
rm -rf CordovaLib
cp -a <crosswalk_cordova>/framework CordovaLib
cp -a <crosswalk_cordova>/VERSION VERSION
cd CordovaLib
android update project --subprojects --path . --target android-19
ant debug
cd ../../..
cordova build android
The last command resulted in this error:
-compile:
[javac] Compiling 5 source files to
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\ant-build\classes
[javac]
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\src\com\syonet\mobile\eventos\CordovaApp.java:33:
error: cannot find symbol
[javac] loadUrl(launchUrl);
[javac] ^
[javac] symbol: variable launchUrl
[javac] location: class CordovaApp
[javac] 1 error
The complete log for this task is available as an attachment.
Can someone help me to fix this problem, please?
Thanks in advance!
Atenciosamente,
*Gustavo HenkeAnalista de Desenvolvimento*
(51) 3649-0300 | [email protected]
visite nosso site: www.syonet.com
Running command:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\cordova\build.bat
Buildfile: C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.5
[checkenv] Installed at C:\Programs\Android\android-sdk
-setup:
[echo] Project Name: CordovaApp
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\ant-build\rsObj
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\ant-build\rsLibs
[echo] ----------
[echo] Resolving Dependencies for CordovaApp...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.5
[checkenv] Installed at C:\Programs\Android\android-sdk
-setup:
[echo] Project Name: XWalkCoreLibrary
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.1
[echo] Resolving Build Target for XWalkCoreLibrary...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\rsObj
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\rsLibs
[echo] ----------
[echo] Resolving Dependencies for XWalkCoreLibrary...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 1 source file to
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\classes
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\res
[crunch] To destination dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\build.prop
-post-build:
debug:
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.5
[checkenv] Installed at C:\Programs\Android\android-sdk
-setup:
[echo] Project Name: CordovaApp
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\rsObj
[mkdir] Created dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\rsLibs
[echo] ----------
[echo] Resolving Dependencies for CordovaApp...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 1 source file to
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\classes
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\res
[crunch] To destination dir:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[aapt] nothing matches overlay file icon.png, for flavor
[aapt] nothing matches overlay file icon.png, for flavor xhdpi-v4
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
[echo] Set jars path to:
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\ant-build\classes.jar;C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\ant-build\classes.jar;C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\CordovaLib\xwalk_core_library\libs\xwalk_core_library_java.jar
-compile:
[javac] Compiling 5 source files to
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\ant-build\classes
[javac]
C:\Users\Gustavo\Projetos\Syonet\eventos\platforms\android\src\com\syonet\mobile\eventos\CordovaApp.java:33:
error: cannot find symbol
[javac] loadUrl(launchUrl);
[javac] ^
[javac] symbol: variable launchUrl
[javac] location: class CordovaApp
[javac] 1 error
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help