Android Studio Wikitude Native SDK问题

时间:2018-03-23 17:58:28

标签: android-studio gradle native wikitude wikitude-sdk

所以我试图首先使用android studio和Wikitudes Native SDK构建一个基本应用程序来制作AR应用程序。按照设置说明我遇到了一个错误,我似乎无法解决,但知道为什么/它发生的地方。有谁知道可能导致这些错误的原因?

This image here shows the errors I am getting and what looks to be an issue with a few of the imports

这里也是我的build.gradle文件(Module:app)和我的build.gradle文件(Module:NativeSDKExamples)的副本:

apply plugin: 'com.android.application'

android {
compileSdkVersion commonCompileSdkVersion
buildToolsVersion commonBuildToolsVersion
defaultConfig {
    applicationId "com.uhg.ent.mobile.lifesciences.amplify"
    minSdkVersion commonMinSdkVersion
    targetSdkVersion commonTargetSdkVersion
    versionCode 1
    versionName "7.2.1"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        debuggable true
    }
}

applicationVariants.all { variant ->
    variant.outputs.each  { output ->
        def outputFile = output.outputFile
        if (outputFile != null && outputFile.name.endsWith('.apk')) {
            def fileName = "app-" + variant.buildType.name + ".apk"
            output.outputFile = new File(outputFile.parent, fileName)
        }
    }
}

flavorDimensions "arch"

productFlavors {
    arm7 {
        dimension "arch"
    }
    arm8 {
        dimension "arch"
    }
    x86 {
        dimension "arch"
    }
    allarchs {
        dimension "arch"
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile (name: 'wikitude-native-sdk', ext:'aar')

arm7Compile project(path: ':plugins', configuration: 'arm7Release')
arm8Compile project(path: ':plugins', configuration: 'arm8Release')
x86Compile project(path: ':plugins', configuration: 'x86Release')
allarchsCompile project(path: ':plugins', configuration: 'allarchsRelease')

compile "com.android.support:appcompat-v7:$commonSupportLibVersion"
compile "com.android.support:design:$commonSupportLibVersion"
compile "com.android.support:support-v4:$commonSupportLibVersion"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android:flexbox:0.2.5'

}

repositories {
mavenCentral()
flatDir {
    dirs 'libs'
}
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
    jcenter()
    maven {
        url 'https://maven.google.com'
    }
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

subprojects {
ext.commonCompileSdkVersion = 26
ext.commonBuildToolsVersion = "26.0.0"
ext.commonMinSdkVersion = 19
ext.commonTargetSdkVersion = 26
ext.commonSupportLibVersion = "26.0.0"
}

allprojects {
repositories {
    jcenter()
    maven {
        url 'https://maven.google.com'
    }
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}
}

0 个答案:

没有答案