我克隆了代码 https://github.com/guardianproject/ChatSecureAndroid,我的应用在点击第一个屏幕上的任何按钮
后崩溃了这是崩溃日志,任何帮助都将受到高度赞赏。
02-29 00:19:05.591:E /(2057):UID 10035要求/ proc / cpuinfo 02-29 00:19:05.591:E /(2057):从文件/data/data/.appwithABI2读取ID 10051 02-29 00:19:05.591:E /(2057):无法打开文件/data/data/.appwithABI2neon 02-29 00:19:05.591:E /(2057):UID 10035不在ARM UID列表文件中 02-29 00:19:17.039:E / Database(2057):sqlite_config failed error_code = 21.这不应该发生。 02-29 00:19:17.119:E / AndroidRuntime(2057):致命异常:主要 02-29 00:19:17.119:E / AndroidRuntime(2057):java.lang.RuntimeException:无法启动活动ComponentInfo {info.guardianproject.otr.app.im/info.guardianproject.otr.app.im.app。 NewChatActivity}:android.view.InflateException:二进制XML文件行#47:错误膨胀类片段 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread.access $ 600(ActivityThread.java:130) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1195) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.os.Handler.dispatchMessage(Handler.java:99) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.os.Looper.loop(Looper.java:137) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread.main(ActivityThread.java:4745) 02-29 00:19:17.119:E / AndroidRuntime(2057):at java.lang.reflect.Method.invokeNative(Native Method) 02-29 00:19:17.119:E / AndroidRuntime(2057):at java.lang.reflect.Method.invoke(Method.java:511) 02-29 00:19:17.119:E / AndroidRuntime(2057):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:786) 02-29 00:19:17.119:E / AndroidRuntime(2057):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 02-29 00:19:17.119:E / AndroidRuntime(2057):at dalvik.system.NativeStart.main(Native Method) 02-29 00:19:17.119:E / AndroidRuntime(2057):引起:android.view.InflateException:二进制XML文件行#47:错误膨胀类片段 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.rInflate(LayoutInflater.java:746) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.rInflate(LayoutInflater.java:749) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.rInflate(LayoutInflater.java:749) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.rInflate(LayoutInflater.java:749) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.inflate(LayoutInflater.java:489) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.inflate(LayoutInflater.java:396) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.inflate(LayoutInflater.java:352) 02-29 00:19:17.119:E / AndroidRuntime(2057):at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.Activity.setContentView(Activity.java:1867) 02-29 00:19:17.119:E / AndroidRuntime(2057):at info.guardianproject.otr.app.im.app.NewChatActivity.onCreate(NewChatActivity.java:190) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.Activity.performCreate(Activity.java:5008) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 02-29 00:19:17.119:E / AndroidRuntime(2057):... 11更多 02-29 00:19:17.119:E / AndroidRuntime(2057):引起:java.lang.IllegalArgumentException:二进制XML文件行#47:必须指定唯一的android:id,android:tag,或者父ID是id对于info.guardianproject.otr.app.im.app.AccountsFragment 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2260) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:357) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:31) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:80) 02-29 00:19:17.119:E / AndroidRuntime(2057):at info.guardianproject.otr.app.im.app.NewChatActivity.onCreateView(NewChatActivity.java:1) 02-29 00:19:17.119:E / AndroidRuntime(2057):在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 02-29 00:19:17.119:E / AndroidRuntime(2057):... 24更多
答案 0 :(得分:1)
在
chatSecure/src/main/res/layout/chat_pager.xml
在第47行,在<fragment />
中你应该尝试添加:
android:id="@+id/accounts_fragment"