运行按钮无效

时间:2016-08-23 08:55:04

标签: android gradle

首先,我不擅长英语,而且我是开发应用程序的新手。在向我解释事情时请考虑这一点。

我添加了蓝牙源。在此期间,我更改并添加了一些代码到gradle文件。从那时起,“运行”按钮不再起作用。

这是我的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.ebookfrenzy.myapplication"
        minSdkVersion 22
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'
}

我该如何解决这个问题? 如果您需要更多相关信息,请留言。 谢谢你的阅读。

编辑:以下是Android监视器中错误消息的一部分

08-23 09:04:56.865 3340-5450/? E/ActivityThread: Failed to find provider info for com.android.contacts.metadata
08-23 09:05:08.418 5708-5958/? E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
08-23 09:05:33.704 6127-6127/? E/ActivityThread: Service com.google.android.gms.car.CarService has leaked ServiceConnection fmj@d6bf3b1 that was originally bound here
android.app.ServiceConnectionLeaked: Service com.google.android.gms.car.CarService has leaked ServiceConnection fmj@d6bf3b1 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1092)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:986)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1303)
at android.app.ContextImpl.bindService(ContextImpl.java:1286)
at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
at android.content.ContextWrapper.bindService(ContextWrapper.java:604)
at ivw.a(:com.google.android.gms:120)
at ivw.a(:com.google.android.gms:137)
at fmj.h(:com.google.android.gms:76)
at fmj.<init>(:com.google.android.gms:64)
at fpn.i(:com.google.android.gms:551)
at com.google.android.gms.car.CarChimeraService.onBind(:com.google.android.gms:165)
at com.google.android.chimera.container.ServiceProxy.onBind(:com.google.android.gms:165)
at android.app.ActivityThread.handleBindService(ActivityThread.java:2904)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1432)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5422)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

0 个答案:

没有答案