首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在gradle Android中支持v-13和v-7的实现

在gradle Android中支持v-13和v-7的实现
EN

Stack Overflow用户
提问于 2018-10-01 10:15:45
回答 1查看 197关注 0票数 0

我正在尝试在android中使用tensorflow lite,并且我必须在一个类中实现FragmentCompat.OnRequestPermissionsResultCallback。

我读到我应该用gradle写这个:

代码语言:javascript
复制
implementation 'com.android.support:support-v13:version_of_library'
implementation 'com.android.support:appcompat-v7:24.0.0'

我在我的gradle中添加了这个,但是在这一行中有一个错误,如下所示:

代码语言:javascript
复制
androidTestImplementation 'com.android.support.test:runner:1.0.2'

这是我的秤:

代码语言:javascript
复制
apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "midlaboratories.reconocimientoconcamara"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation project(':openCVLibrary340')
    implementation 'com.google.android.gms:play-services-vision:15.0.2'
    implementation 'org.tensorflow:tensorflow-lite:+'
    implementation 'com.android.support:support-v13:version_of_library'
    implementation 'com.android.support:appcompat-v7:24.0.0'
}

有人知道解决办法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-10-01 12:54:16

尝试以下设置:

代码语言:javascript
复制
implementation 'org.tensorflow:tensorflow-lite:1.10.0' 
implementation 'com.android.support:support-v13:28.0.0' 
implementation 'com.android.support:appcompat-v7:28.0.0' 

而不是这个

代码语言:javascript
复制
implementation 'org.tensorflow:tensorflow-lite:+'
implementation 'com.android.support:support-v13:version_of_library'
implementation 'com.android.support:appcompat-v7:24.0.0'
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52588956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档