Android工作室奇怪的错误

时间:2017-07-05 04:11:48

标签: java android sdk

我是一个新的Android开发人员,我无法弄清楚为什么我得到这个错误。我这里没有意义的是错误日志,它在我的主要活动中表示它的第35行。我也包括activity_xml代码。多谢你们。我也是在真实设备上运行它以进行测试!



07-04 21:09:00.318 758-840/? E/ViewRootImpl: sendUserActionEvent() mView == null
07-04 21:09:00.768 4784-4784/? E/Zygote: v2
07-04 21:09:00.768 4784-4784/? E/Zygote: accessInfo : 0
07-04 21:09:00.948 4808-4808/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_dependencies_apk.apk@classes.dex: Permission denied
07-04 21:09:01.158 4815-4815/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_0_apk.apk@classes.dex: Permission denied
07-04 21:09:01.218 4817-4817/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_1_apk.apk@classes.dex: Permission denied
07-04 21:09:01.278 4819-4819/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_2_apk.apk@classes.dex: Permission denied
07-04 21:09:01.348 4821-4821/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_3_apk.apk@classes.dex: Permission denied
07-04 21:09:01.418 4830-4830/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_4_apk.apk@classes.dex: Permission denied
07-04 21:09:01.478 4836-4836/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_5_apk.apk@classes.dex: Permission denied
07-04 21:09:01.528 4839-4839/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_6_apk.apk@classes.dex: Permission denied
07-04 21:09:01.588 4841-4841/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_7_apk.apk@classes.dex: Permission denied
07-04 21:09:01.638 4843-4843/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_8_apk.apk@classes.dex: Permission denied
07-04 21:09:01.698 4848-4848/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@app@com.karanvir.search-2@split_lib_slice_9_apk.apk@classes.dex: Permission denied
07-04 21:09:02.218 4784-4784/com.karanvir.search E/AndroidRuntime: FATAL EXCEPTION: main
                                                                   Process: com.karanvir.search, PID: 4784
                                                                   java.lang.OutOfMemoryError: Failed to allocate a 187747212 byte allocation with 16777216 free bytes and 107MB until OOM
                                                                       at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
                                                                       at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
                                                                       at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)
                                                                       at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)
                                                                       at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:2228)
                                                                       at android.content.res.Resources.loadDrawableForCookie(Resources.java:4211)
                                                                       at android.content.res.Resources.loadDrawable(Resources.java:4085)
                                                                       at android.content.res.Resources.loadDrawable(Resources.java:3935)
                                                                       at android.content.res.TypedArray.getDrawable(TypedArray.java:886)
                                                                       at android.view.View.<init>(View.java:4230)
                                                                       at android.widget.TextView.<init>(TextView.java:955)
                                                                       at android.widget.Button.<init>(Button.java:112)
                                                                       at android.widget.Button.<init>(Button.java:105)
                                                                       at android.support.v7.widget.AppCompatButton.<init>(AppCompatButton.java:66)
                                                                       at android.support.v7.widget.AppCompatButton.<init>(AppCompatButton.java:62)
                                                                       at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:109)
                                                                       at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1021)
                                                                       at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1080)
                                                                       at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:47)
                                                                       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:758)
                                                                       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
                                                                       at android.view.LayoutInflater.rInflate(LayoutInflater.java:847)
                                                                       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
                                                                       at android.view.LayoutInflater.rInflate(LayoutInflater.java:855)
                                                                       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:810)
                                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:527)
                                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:429)
                                                                       at android.view.LayoutInflater.inflate(LayoutInflater.java:380)
                                                                       at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:288)
                                                                       at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                                       at com.karanvir.search.MainActivity.onCreate(MainActivity.java:35)
                                                                       at android.app.Activity.performCreate(Activity.java:6876)
                                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
                                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
                                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
                                                                       at android.app.ActivityThread.access$1100(ActivityThread.java:221)
                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
                                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                       at android.os.Looper.loop(Looper.java:158)
                                                                       at android.app.ActivityThread.main(ActivityThread.java:7224)
                                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
07-04 21:09:02.528 758-4876/? E/android.os.Debug: ro.product_ship = true
07-04 21:09:02.528 758-4876/? E/android.os.Debug: ro.debug_level = 0x4f4c
07-04 21:09:02.528 758-4876/? E/android.os.Debug: sys.mobilecare.preload = false
07-04 21:09:14.088 758-758/? E/VibratorService: vibratePatternMagnitude() is failed by illegal argument.
07-04 21:09:15.578 758-1529/? E/Watchdog: !@Sync 3036 [07-04 21:09:15.588]
07-04 21:09:19.238 3923-3950/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 7 size : 5Kb duration : 191ms lastUpdatedAfter : 26100 ms mFlush_time_threasold : 2000 mCurrentSize : 2562
&#13;
{{1}}
&#13;
{{1}}
&#13;
&#13;
&#13;

0 个答案:

没有答案