问题描述
- android开发华为p6卡顿
-
开发的app在大部分手机上都挺流畅,但是在华为p6上特别卡顿,而且经常崩溃,在华为m7闪退
解决方案
如果 有.so文件的话 试试这个
在build.gradle里面加上这个
android {
....
defaultConfig {
...
multiDexEnabled true
ndk {
abiFilters "armeabi"
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
解决方案二:
没有异常报错log怎么分析
解决方案三:
java.lang.RuntimeException: Could not read input channel file descriptors from parcel.
at android.view.InputChannel.nativeReadFromParcel(Native Method)
at android.view.InputChannel.readFromParcel(InputChannel.java:148)
at android.view.InputChannel$1.createFromParcel(InputChannel.java:39)
at android.view.InputChannel$1.createFromParcel(InputChannel.java:36)
at com.android.internal.view.InputBindResult.(InputBindResult.java:62)
at com.android.internal.view.InputBindResult$1.createFromParcel(InputBindResult.java:102)
at com.android.internal.view.InputBindResult$1.createFromParcel(InputBindResult.java:99)
at com.android.internal.view.IInputMethodManager$Stub$Proxy.windowGainedFocus(IInputMethodManager.java:712)
at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1169)
at android.view.inputmethod.InputMethodManager.onWindowFocus(InputMethodManager.java:1374)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3269)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5314)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
at dalvik.system.NativeStart.main(Native Method)
解决方案四:
可能是手机ROM的问题