小编San*_*ami的帖子

无法为类型为org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler的对象获取未知属性'compile'

我正准备添加谷歌地图活动,我的android工作室显示此错误

错误:错误:第(25)行无法为org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler类型的对象获取未知属性'compile'.

 <a href="openFi`here`le:C:\Users\dhami\Desktop\uber1\ParseStarterProject\build.gradle"></a>
Run Code Online (Sandbox Code Playgroud)

这是我的解析项目Gradle文件

apply plugin: 'com.android.application'android {                                                                              compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
    applicationId "com.parse.starter"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.parse.bolts:bolts-tasks:1.3.0'
    compile 'com.parse:parse-android:1.13.0'
    compile 'com.google.android.gms``:play-services:9.2.1'
}
Run Code Online (Sandbox Code Playgroud)

这是我的项目gradle文件

buildscript {
repositories {
    mavenCentral()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.1.3'
}}allprojects {
repositories {
    mavenCentral()
}  } ext {
compileSdkVersion = 23
buildToolsVersion = "23.0.1"
minSdkVersion = 14
targetSdkVersion = 23 …
Run Code Online (Sandbox Code Playgroud)

android build.gradle android-gradle-plugin

23
推荐指数
2
解决办法
7万
查看次数

如何使用 Biometric api 进行人脸认证

我使用了使用 Biometric api 的指纹认证及其工作。我需要对人脸识别做同样的事情,比如点击登录按钮而不是密码,我将使用人脸认证。

那么可以使用 Biometric api 还是我必须使用 Open cv?

android android-biometric-prompt

4
推荐指数
1
解决办法
4009
查看次数