Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 将项目升级到API 25后引发错误_Android_Api_Crash_Inputstream - Fatal编程技术网

Android 将项目升级到API 25后引发错误

Android 将项目升级到API 25后引发错误,android,api,crash,inputstream,Android,Api,Crash,Inputstream,我正在android studio中构建一个新的应用程序来显示来自外部服务器的消息。昨天,我决定在API 25支持的主要活动中构建一个BottomNavigationView。所以我将应用程序的API从24改为25。编译计划中的一切看起来都很好,但当应用程序运行时,它会崩溃,代码如下: com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engin

我正在android studio中构建一个新的应用程序来显示来自外部服务器的消息。昨天,我决定在API 25支持的主要活动中构建一个BottomNavigationView。所以我将应用程序的API从24改为25。编译计划中的一切看起来都很好,但当应用程序运行时,它会崩溃,代码如下:

com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
                                                                                               com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream
                                                                                                   at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)
                                                                                                   at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)
                                                                                                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
                                                                                                   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
                                                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                                                                   at java.lang.Thread.run(Thread.java:761)
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
                                                                                                Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
                                                                                                   at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)
                                                                                                   at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)
                                                                                                   at java.io.InputStream.read(InputStream.java:101)
                                                                                                   at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)
                                                                                                   at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)
                                                                                                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
                                                                                                   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
                                                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
                                                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
                                                                                                   at java.lang.Thread.run(Thread.java:761) 
                                                                                                   at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
以下是gradle模块应用程序:

`apply plug`in: 'com.android.application'


android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        applicationId "com.newapplications"
        minSdkVersion 20
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.volley:volley:1.0.0'
    compile 'junit:junit:4.12'
    compile 'com.google.code.gson:gson:2.7'
    compile 'com.android.support:support-vector-drawable:25.3.1'
    compile 'com.android.support:design:25.3.1'
}

我在网上搜索过了,但还没有找到任何有用的东西。有人能帮我吗

你有什么证据证明这个堆栈跟踪来自你的应用程序?它应该来自谁?我没有附加任何类,因为我相信这个错误来自其他一些内部冲突,但我可能是错的。我应该发布整个主要活动吗?“它应该来自谁?”--如果你的应用程序崩溃,堆栈跟踪将来自你的进程。@FirstOfBadones你解决了这个问题吗?我犯了一个奇怪的错误!