Hi,

thanks for your answers.
I finally found a solution.
I moved to beta (6.35.131.9
<https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.9/crosswalk-6.35.131.9.zip>)
with Android Webview instead of Cordova Android and everythings fine.

Now, i have to find a way to distribute the app with the two configuration
: arm and x86.
Will try to put the two core.so.

Thanks again.


Stéphane CastrecSoftware engineer / Mobile developer
E-mail : [email protected] <[email protected]>
Twitter : @_Stephane_ <https://twitter.com/_Stephane_>
   <http://fr.linkedin.com/pub/st%C3%A9phane-castrec/16/606/6b8>




On Sun, Jun 22, 2014 at 10:06 AM, Fu, Junwei <[email protected]> wrote:

>  Hi,
>
>
>
> There are different between android studio and ADT in so library. We must
> edit build.gradle file to copy libs into build/native-libs dir. for
> example,
>
>
>
>     task copyNativeLibs(type: Copy) {
>
>         def libPath =
> project(':framework:xwalk_core_library').projectDir.absolutePath + '/libs'
>
>         println libPath
>
>         from fileTree(dir: 'libs', include: '*/*.so' )  into
> 'build/native-libs'
>
>         from fileTree(dir: libPath, include: '*/*.so' )  into
> 'build/native-libs'
>
>     }
>
>     tasks.withType(Compile) { compileTask -> compileTask.dependsOn
> copyNativeLibs }
>
>
>
>     clean.dependsOn 'cleanCopyNativeLibs'
>
>
>
>     tasks.withType(com.android.build.gradle.tasks.PackageApplication) {
> pkgTask ->
>
>         pkgTask.jniFolders = new HashSet()
>
>         pkgTask.jniFolders.add(new File(projectDir, 'build/native-libs'))
>
>         println pkgTask.jniFolders
>
> }
>
>
>
> Now, you can success load xwalk_core_library, but may be get follow error,
>
>
>
> 06-22 14:30:06.530    1519-1519/org.crosswalkproject.sample
> W/ApplicationContext﹕ Unable to create external cache directory
>
> 06-22 14:30:06.535    1519-1519/org.crosswalkproject.sample
> E/AndroidRuntime﹕ FATAL EXCEPTION: main
>
>     java.lang.RuntimeException: Unable to start activity
> ComponentInfo{org.crosswalkproject.sample/org.crosswalkproject.sample.HellWorld}:
> java.lang.NullPointerException
>
>             at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2100)
>
>
>
> you must add “<uses-permission
> android:name="android.permission.WRITE_EXTERNAL_STORAGE" />”  to
> AndroidManifest.xml  for  HellWorld sample.
>
>
>
> Regards.
>
> Fujunwei.
>
>
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to