我試圖用CrossWalk作爲依賴構建瀏覽器。使用CrossWalk嵌入式構建應用程序
但我不斷收到關於XWalkInternalResources異常:
W/dalvikvm(3165): VFY: unable to resolve static field 4639 (cpu_arch_mismatch_message) in Lorg/xwalk/core/R$string;
D/dalvikvm(3165): VFY: replacing opcode 0x60 at 0x001c
I/dalvikvm(3165): DexOpt: unable to optimize static field ref 0x1220 at 0x2d in Lorg/xwalk/core/XWalkView;.init
I/dalvikvm(3165): DexOpt: unable to optimize static field ref 0x1226 at 0x40 in Lorg/xwalk/core/XWalkView;.init
I/dalvikvm(3165): DexOpt: unable to optimize static field ref 0x122e at 0x4b in Lorg/xwalk/core/XWalkView;.init
W/XWalkInternalResources(3165): org.xwalk.core.R$styleis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$stringis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$menuis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$layoutis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$idis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$drawableis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$dimenis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$attris not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$dimenis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$coloris not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$styleis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$drawableis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$layoutis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$idis not found.
W/XWalkInternalResources(3165): org.xwalk.core.R$stringis not found.
I/LibraryLoader(3165): Loading: xwalkcore
I/LibraryLoader(3165): Time to load native libraries: 23 ms (timestamps 5556-5579)
I/LibraryLoader(3165): Expected native library version number "",actual native library version number ""
I/LibraryLoader(3165): Expected native library version number "",actual native library version number ""
I/chromium(3165): [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0
D/dalvikvm(3165): GC_CONCURRENT freed 244K, 6% free 4279K/4552K, paused 3ms+2ms, total 19ms
I/BrowserStartupController(3165): Initializing chromium process, renderers=0
F/chromium(3165): [FATAL:content_main_runner.cc(689)] Check failed: base::i18n::InitializeICU().
F/libc (3165): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 3165 (browser)
Make文件我的瀏覽器:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := DukaSharedLibrary\
DukaBrowserLibrary\
JsoupBrowserLibrary\
CrossWalkLibrary
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
LOCAL_RESOURCE_DIR += vendor/duka/DukaSharedLibrary/res
LOCAL_RESOURCE_DIR += vendor/duka/DukaBrowserLibrary/res
LOCAL_RESOURCE_DIR += vendor/duka/CrossWalk/res
LOCAL_MANIFEST_FILE := AndroidManifest.xml
LOCAL_PACKAGE_NAME := DukaBrowser
LOCAL_CERTIFICATE := platform
LOCAL_ASSET_DIR := vendor/duka/DukaSharedLibrary/assets
LOCAL_AAPT_FLAGS := --auto-add-overlay
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := JsoupBrowserLibrary:libs/jsoup-1.7.3.jar
include $(BUILD_MULTI_PREBUILT)
Make文件的人行橫道:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := CrossWalkLibrary
LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
LOCAL_STATIC_JAVA_LIBRARIES := XWalkLibrary
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_STATIC_JAVA_LIBRARY)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := XWalkLibrary:libs/xwalk_core_library_java.jar
include $(BUILD_MULTI_PREBUILT)
做任何事情看起來很奇怪這裏?我知道包含在crosswalk項目中的.jar文件可以通過瀏覽器項目找到,因爲我已經擺脫了之前的錯誤。
我是否需要執行任何其他步驟來包含這些內部資源?
這是真的有關[標籤:R]標記? – 2014-09-30 09:06:10
我真的不知道。我現在將刪除標籤。 – Whooper 2014-09-30 09:06:51
閱讀標籤wiki,然後你就會知道 – 2014-09-30 09:07:14