dougdiego / crosswalkdemo Goto Github PK
View Code? Open in Web Editor NEWA simple project showing how to embed Crosswalk into an Android application.
License: MIT License
A simple project showing how to embed Crosswalk into an Android application.
License: MIT License
I'm using the Cloud9IDE on my Chromebook.
I cloned the repo, changed the url in MainActivity.java to my website and ran ./gradlew assembleRelease
as the README.md file stated and got the following error.
FAILURE: Build failed with an exception.
Where:
Build file '/home/ubuntu/workspace/CrosswalkDemo/app/build.gradle' line: 17What went wrong:
A problem occurred evaluating project ':app'.SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED
Hi,
I got this error when I tried to build the project, do you happen to know how to resolve it?
Error:A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not resolve org.xwalk:xwalk_core_library_beta:15.44.384.7.
Required by:
CrosswalkDemo-master:app:unspecified
> No cached version of org.xwalk:xwalk_core_library_beta:15.44.384.7 available for offline mode.
> No cached version of org.xwalk:xwalk_core_library_beta:15.44.384.7 available for offline mode.
generate apk for arm ?
Hi
Thanks for the demo project, however i am getting following error at runtime. Any idea?
02-02 10:52:37.938: E/AndroidRuntime(6861): FATAL EXCEPTION: main
02-02 10:52:37.938: E/AndroidRuntime(6861): Process: com.example, PID: 6861
02-02 10:52:37.938: E/AndroidRuntime(6861): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.CrosswalkActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class org.xwalk.core.XWalkView
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2265)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.access$800(ActivityThread.java:145)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Handler.dispatchMessage(Handler.java:102)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Looper.loop(Looper.java:136)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.main(ActivityThread.java:5081)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Method.invokeNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Method.invoke(Method.java:515)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-02 10:52:37.938: E/AndroidRuntime(6861): at dalvik.system.NativeStart.main(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class org.xwalk.core.XWalkView
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:343)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Activity.setContentView(Activity.java:1929)
02-02 10:52:37.938: E/AndroidRuntime(6861): at com.example.CrosswalkActivity.onCreate(CrosswalkActivity.java:22)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Activity.performCreate(Activity.java:5231)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 11 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.constructNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 23 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:260)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.XWalkView.(XWalkView.java:168)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 26 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.reflect.InvocationTargetException
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.constructNative(Native Method)
02-02 10:52:37.938: E/AndroidRuntime(6861): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:252)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 27 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.RuntimeException: java.lang.SecurityException: ConnectivityService: Neither user 10091 nor current process has android.permission.ACCESS_NETWORK_STATE.
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewInternal.init(XWalkViewInternal.java:286)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewInternal.(XWalkViewInternal.java:197)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.xwalk.core.internal.XWalkViewBridge.(XWalkViewBridge.java:45)
02-02 10:52:37.938: E/AndroidRuntime(6861): ... 30 more
02-02 10:52:37.938: E/AndroidRuntime(6861): Caused by: java.lang.SecurityException: ConnectivityService: Neither user 10091 nor current process has android.permission.ACCESS_NETWORK_STATE.
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Parcel.readException(Parcel.java:1465)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.os.Parcel.readException(Parcel.java:1419)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.net.IConnectivityManager$Stub$Proxy.getActiveNetworkInfo(IConnectivityManager.java:813)
02-02 10:52:37.938: E/AndroidRuntime(6861): at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:560)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.chromium.net.NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate.activeNetworkExists(NetworkChangeNotifierAutoDetect.java:44)
02-02 10:52:37.938: E/AndroidRuntime(6861): at org.chromium.net.NetworkChangeNotifierAutoDetect.getCurrentConnectionType(NetworkChangeNotifierAutoDetect.java:154)
i tried a lot to implement it for both 32 and 64 bit in the android studio but could not get success
basically, i have added both 32 and 64 bit code in the gradle file like below
implementation 'org.xwalk:xwalk_core_library:21.51.546.7'
implementation 'org.xwalk:xwalk_core_library:21.51.546.7-64bit'
and have implement all the logic to add both .aar files by following the procedure explained in the like below
url for adding both 32 and 64 bit
i also tried by adding both in the dependencies manually
but it is working in the debug mode but do not in the release mode, when i run the project in the release mode it give me blow error
Program type already present: SevenZip.CRC
In the emulator, I run the app with API 19 on three different emulated devices (Nexus 5X and Galaxay Nexus and Nexus S) and none of them show the keyboard when I click on a text box on a web page. Above API 19, it seems to work as expected.
Is there something I am missing?
I see these messages when I click the text input in the android monitor log:
08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:42] restartInput
08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:50] showSoftInput
08-15 19:31:23.540 2243-2243/com.calendri.calendriandroid D/cr_Ime: [InputMethodManagerWrapper.java:77] updateSelection: SEL [0, 0], COM [-1, -1]
Hello,
I am new to Android programming, and I can't figure out how to request permissions only when the user wants to upload a file. Right now I request WRITE_EXTERNAL_STORAGE permission when the app loads, but I don't think this is ok.
I have tried to override the UIClient's openFileChooser method, to request the permission there, but I found that this is called after the "choose file" popup appears, and without permission no files are shown.
Do you know of a better solution?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.