I think the cause of this error is xwalk library did not be compiled, could you 
please try to rebuild it, running following commands in xwalk library directory
$ ant clean & ant debug

Thanks,
Junwei.


------------------------------



Message: 7

Date: Mon, 12 Jan 2015 12:04:26 +0100

From: Julian Dropmann <[email protected]<mailto:[email protected]>>

To: 
<[email protected]<mailto:[email protected]>>

Subject: [Crosswalk-help]

                android.content.res.Resources$NotFoundException in Crosswalk 10

                XWalkView ctor

Message-ID: 
<[email protected]<mailto:[email protected]>>

Content-Type: text/plain; charset="utf-8"



Hello everyone,



I get this error when I try to create an XWalkView (Crosswalk 10 android

webview) in an ant-built APK:

I am quite sure the build environment did not change when I moved from 
Crosswalk 7 to 10.

It only happens when I build the release version with ant on the build server; 
in IntelliJ everything works, even though I run proguard in both cases.

SDK versions are equal in both setups.

Is this a bug in Crosswalk, or do I miss something?



    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

            [...]

     Caused by: java.lang.reflect.InvocationTargetException

            [...]

     Caused by: android.content.res.Resources$NotFoundException: String 
resource ID #0x0

            at android.content.res.Resources.getText(Resources.java:260)

            at android.content.res.Resources.getString(Resources.java:344)

            at android.content.Context.getString(Context.java:282)

            at 
org.xwalk.core.internal.XWalkUIClientInternal.initResources(SourceFile:75)

            at 
org.xwalk.core.internal.XWalkUIClientInternal.<init>(SourceFile:70)

            at 
org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(SourceFile:369)

            at org.xwalk.core.internal.XWalkViewInternal.init(SourceFile:349)

            at org.xwalk.core.internal.XWalkViewInternal.<init>(SourceFile:221)

            at org.xwalk.core.internal.XWalkViewBridge.<init>(SourceFile:55)

            at java.lang.reflect.Constructor.constructNative(Native Method)

            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

            at org.xwalk.core.ReflectionHelper.createInstance(SourceFile:252)

            at org.xwalk.core.XWalkView.<init>(SourceFile:191)

            [...]





Regards,

Julian







------------------------------



Subject: Digest Footer



_______________________________________________

Crosswalk-help mailing list

[email protected]<mailto:[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