1

我从这个链接AndroidBuildInstructions完成了 Android Content shell 的构建。

之后,我想从中制作 Eclipse 项目,并按照Chromium for Android 的链接代码进行操作

但是当我添加所有必需的 java 类和必需的资源时,我现在得到的唯一问题是在下面的两个aidl 文件中。

1)IRemoteAndroidKeyStoreInterface.aidl It is under Package org.chromium.net,Here is aidl file code:
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

interface org.chomium.net.IRemoteAndroidKeyStore;
interface org.chromium.net.IRemoteAndroidKeyStoreCallbacks;

2)common.aidl  It is under Package org.chromium.content.common ,It's code is below 

// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is needed to compile IChildProcessCallback.aidl and
// IChildProcessServices.aidl into java source files.  See
// content/public/android/java/content.xml for target aidl.

interface org.chromium.content.common.IChildProcessCallback;
interface org.chromium.content.common.IChildProcessService;

这两个文件都给我如下错误:

此行有多个标记 - 语法错误不知道如何处理“;” - 语法错误

是否有人拥有 ContentShell apk 的完整代码以对其进行一些修改,因为我无法为 Eclipse 运行代码。有人知道如何解决这个针对 android 内容 shell 源代码的辅助问题吗?

为了尝试,我已经从包和运行项目中删除了这两个aidl,但它现在给出以下错误:

04-08 15:22:56.362: E/ContentShellActivity(10236): ContentView initialization failed.
04-08 15:22:56.362: E/ContentShellActivity(10236): org.chromium.base.library_loader.ProcessInitException
04-08 15:22:56.362: E/ContentShellActivity(10236):  at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:190)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:85)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at org.chromium.base.library_loader.LibraryLoader.ensureInitialized(LibraryLoader.java:57)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at org.chromium.content_shell_apk.ContentShellActivity.onCreate(ContentShellActivity.java:60)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.Activity.performCreate(Activity.java:5231)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.ActivityThread.access$800(ActivityThread.java:135)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.os.Handler.dispatchMessage(Handler.java:102)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.os.Looper.loop(Looper.java:136)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at android.app.ActivityThread.main(ActivityThread.java:5017)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at java.lang.reflect.Method.invokeNative(Native Method)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at java.lang.reflect.Method.invoke(Method.java:515)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at dalvik.system.NativeStart.main(Native Method)
04-08 15:22:56.362: E/ContentShellActivity(10236): Caused by: java.lang.UnsatisfiedLinkError: unknown failure
04-08 15:22:56.362: E/ContentShellActivity(10236):  at java.lang.Runtime.loadLibrary(Runtime.java:364)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at java.lang.System.loadLibrary(System.java:526)
04-08 15:22:56.362: E/ContentShellActivity(10236):  at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:161)
04-08 15:22:56.362: E/ContentShellActivity(10236):  ... 17 more
4

0 回答 0