Your app has stopped - Android studio error : I have been developing a simple app in android studio, but my app keeps crashing when i attempt to run it. The stacktrace:

    03-29 23:32:34.720 2130-2206/com.google.android.googlequicksearchbox:search 
    E/AudioRecord: Could not get audio input for session 4801, record source 
    1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
    03-29 23:32:34.720 2130-2206/com.google.android.googlequicksearchbox:search 
    E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check 
    failed with status -22.
    03-29 23:32:34.720 2130-2206/com.google.android.googlequicksearchbox:search 
    E/android.media.AudioRecord: Error code -20 when initializing native 
    AudioRecord object.
    03-29 23:32:34.721 2130-2206/com.google.android.googlequicksearchbox:search 
    E/ActivityThread: Failed to find provider info for 
    com.google.android.apps.gsa.testing.ui.audio.recorded

I don't understand why this is happening, I never attempt to use a microphone or anything audio related in my app.

Here is my AndroidManifest.xml:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.nick.project2" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme" >
        <activity android:name=".MainActivity" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

Thanks

