-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build Webview+ project #14
Comments
Ok, I have changed my .bash_profile to the following and can now get a bit further: export ANDROID_HOME=/Users/chris/Development/adt-bundle/sdk Now i get: So I have changed "target=Google Inc.:Google APIs:19" to "target=android-19" in the android/project.properties and ran the "$ cocoonjs plugin add com.ludei.webview.plus -d", but this just overwrites the changes. Also after changing the above I run the below: I get returned the below output: Buildfile: /Users/chris/Work/test_project/development/cocoonjs/plugins/com.ludei.webview.plus/android/build.xml -set-mode-check: -set-release-mode: -release-obfuscation-check: -pre-build: -check-env: -setup: -build-setup: -code-gen: BUILD FAILED Can anyone help. Its driving me crazy. Thanks in advance |
Ok after hours of searching and playing I have finally managed to sort out the compiling of WebView+ in my Cordova project. Anyone getting the error: "Unable to resolve project target 'Google Inc.:Google APIs:19'" make sure you have the whole of the Android SDK installed: SDK Platform, Google APIs (x86 System Image), Google APIs (ARM System Image). I am now onto my next issue. The app compiles but when it is run on the device i just get a black screen. If i use Chrome to inspect the WebView I can see that everything has loaded but i get the following warning: "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened." Can anyone help? |
Hi Chris, |
I managed to fix the black screen issue. For some reason I was forcing software rendering by having the below script in my main Java file: super.appView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null); I must have added it in the early day of development :-(. So ready for my next issue :-) I have a Android phone running 4.3 this time i created a basic project from scratch not including any plugins. When i compile and run it on my device i get the following error on the device: "Unfortunately, LudeiTest has stopped." Here is the log from Eclipse: 09-17 17:23:58.582: E/ResourceType(22075): 0x4fda7968: Failed to ResTable::remove() cookie = 0x3, not last table. mHeaders.size() = 4. Warning for spontaneous crashes when the garbage collector runs. Any ideas? Here is a link to my Source: http://dev.c-andrews.co.uk/ludeiTest.zip |
Hi,
I have been having issues trying to add WebView+ to my Cordova project. I have run the add plugin in debug mode and get the following:
$ cocoonjs plugin add com.ludei.webview.plus -d
[CocoonJS] Executing command 'plugin add com.ludei.webview.plus -d'
[CocoonJS] Installing Webview+ in your Cordova Project.
[CocoonJS] Downloading Webview+...
Fetching plugin "com.ludei.webview.plus" via plugin registry
Installing "com.ludei.webview.plus" for android
[CocoonJS] Executing 'ant release -buildfile /Users/chris/Work/test_project/development/test/plugins/com.ludei.webview.plus/android/build.xml'
Buildfile: /Users/chris/Work/test_project/development/test/plugins/com.ludei.webview.plus/android/build.xml
BUILD FAILED
/Users/chris/Work/test_project/development/test/plugins/com.ludei.webview.plus/android/build.xml:90: Cannot find /Users/chris/Development/adt-bundle/sdk/platform-tools:/Users/chris/Development/adt-bundle/sdk/tools/ant/build.xml imported from /Users/chris/Work/test_project/development/test/plugins/com.ludei.webview.plus/android/build.xml
Am i missing something, the build.xml file is there but it is not finding it. My .bash_profile file looks like this:
export ANDROID_HOME=/Users/chris/Development/adt-bundle/sdk/platform-tools:/Users/chris/Development/adt-bundle/sdk/
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Any help is very appreciated.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: