- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是build.gradle文件
apply plugin: 'com.android.application'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.3"
defaultConfig.with {
applicationId = "org.artoolkit.ar.samples.ARSimpleNativeCars"
minSdkVersion.apiLevel = 15
targetSdkVersion.apiLevel = 22
versionCode = 1
versionName = "1.0.2"
buildConfigFields.with {
create() {
type = "int"
name = "VALUE"
value = "1"
}
}
ndk.with {
moduleName = "ARSimpleNativeCars"
}
}
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.pro')
}
}
android.productFlavors {
}
android.sources {
main.jni {
source {
srcDirs = ['src/main/nop']
}
}
main.jniLibs {
source {
srcDirs = ['src/main/libs']
}
}
}
android.compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
//compile 'com.android.support:support-v4:23.0.1'
//compile 'com.android.support:appcompat-v7:23.0.1'
compile project(':aRBaseLib')
}
这是顶级build.gradle文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
repositories {
mavenCentral()
}
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
这是我正在尝试运行的 ARToolkit
示例 android 项目每当我尝试运行这个项目时,它都会说
Gradle 'ARSimpleNativeCarsProj' project refresh failed
Error: Cause: buildToolsVersion is not specified.
apply plugin: 'com.android.application' <---- in this line it is actually
apply plugin: 'com.android.model.application' which if I kept it keep saying
failed to find plugin com.android.model.application
但是如果我从插件部分移除模型它说未指定 buildToolsVersion。
提前感谢您的帮助...
最佳答案
首先你需要保留模型。该模型是指在 Android Studio 中支持 native 代码的新实验性 gradle 插件。有关更多详细信息,请参见此处: http://tools.android.com/tech-docs/new-build-system/gradle-experimental
如果删除模型,它找不到 buildToolsVersion,因为旧的(当前)gradle 版本在 DSL 中没有“模型”。因此,您需要从 gradle.build 文件中删除完整的“model{ ... }”部分。但是你需要它,否则你无法构建这个项目。 (所以这只是一个旁注)
此外,您的顶级 gradle 文件实际上应该如下所示
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.7.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
我想知道为什么你有另一个 gradle 版本。
除此之外,请阅读此文档以开始使用 native C/C++ 代码和 NDK 进行 Android 开发: http://artoolkit.org/documentation/doku.php?id=4_Android:android_native
如果有帮助请告诉我
关于java - 找不到 ARToolkit buildToolsVersion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38553039/
我正在从事一个增强现实项目,我计划使用 ARToolkit 进行图像捕获和渲染,而 ARToolKitPlus 用于标记检测。 问题是 ARToolKit 是一个 C 库,而 ARToolKit+ 是
我正在尝试使用ARToolkit中的ntfSimpleProj示例。 我设置环境变量: export ANDROID_HOME=/media/applica/Storage/Android/Sdk;
我一直在使用 ARToolKit 来校准我的相机,一切正常,直到我尝试保存结果,它出现了这个错误: 错误(13):无法打开相机参数文件“camera_para.dat”进行写入。结果太大参数写入错误!
我正在使用 ARToolKit 制作一个 iOS 应用程序,一切正常。但是我的跟踪对象彼此非常接近,因此大多数时候它跟踪最准确的跟踪模式并且很难将注意力集中在其他人身上。有没有办法给出尺寸或指定 AR
我想知道是否可以在 Android 包装器中使用 ARToolkit 进行单图像检测?例如:从图库中选择图片或者用相机拍摄图片然后将字节发送到 ARToolkit 进行标记识别? 最佳答案 是的,这很
我正在尝试使用 ARtoolkit,但使用的是静态图像而不是视频流。我需要能够加载图像、识别标记并定位它们。我正在使用 SDL 加载图像。我能够从加载的图像中获取每个像素的 RGB 值,但我不确定如何
我提出了一个非常笼统的问题。 我从这个链接(软件和其他)下载 ArtoolKIt ArtoolKit我在 ubuntu 的终端中使用这个命令: apt-get install freeglut3-de
我想开发一个 Android 应用程序来检测一些目标并在其上显示播放图标。当用户点击播放图标时,增强现实会在另一个 Activity 上播放。 我使用 ARToolkit 作为 SDK。 Intera
当我在Android Studio中打开ARSimpleProj并尝试更新gradle版本时,出现以下消息: Failed to update the version of the Android G
我想实现一个简单的 AR 桌面应用程序。此应用程序应首先从一组预先注册的标记中识别出一个标记,然后在屏幕上显示与检测到的标记相关的一些特定信息。 我正在考虑使用 ARToolkit,即使它已经很旧并且
我使用 Vuforia 已有一段时间了,它的局限性在于我无法直接向自然特征跟踪处理器提交图像以将其转换为可跟踪的数据文件。相反,它是硬连线直接从相机拍摄图像,这让我无法控制。例如,参见 UserDef
这是build.gradle文件 apply plugin: 'com.android.application' model { android {
基于 this ARToolkit 网站上的指南,默认标记边框厚度为 25%。我想将其更改为 20%,也可能更改为 15%。可以修改吗?如果可以,那怎么做? 最佳答案 由于您没有指定语言,我假设您在
我刚刚开始研究 Android 上的 ARToolkit,我看到的示例依赖于识别来自设备摄像头的视频流中的标记。 有没有可以使用图像(例如包含二维条形码标记的普通 JPG 文件)代替的示例?或者有没有
我正在使用 Android 版 ARToolkit 并尝试在检测到的标记上写一个文本。我想用一个简单的 TextView 来做到这一点。所以我只使用 ARToolkit 来查找标记。 但是我怎样才能在
一个项目分配给我,我需要在其中使用ARToolKit。但我很困惑如何使用它,如何开始使用 ARToolKit。 它与 metaio、vuforia 和 total immersion 一样吗?请帮助我
我正在尝试实现 ARToolKit进入 Objective-c iOS 应用程序。 我已经下载了 ARToolKit SDK,我看到了以下内容。 ARToolKit5 目录用于 Mac OSX,因此我
如何在 ARToolKit 中检索标记的坐标并像二维坐标一样保存。所以我可以尝试使用这些坐标剪切一个 jpg 文件。 最佳答案 标记的角和中心的二维位置很容易检索。它们存储在 ARMarkerInfo
我在 64 位华硕的 Ubuntu 12.10 上安装了 ARToolKit。安装没有错误,所以我觉得我没问题。但是当我想尝试一个例子时,它找不到相机。如果我在 char *vconf = ""; 没
我正在尝试进入 AR,因此从这里下载了适用于 Android 的 ARToolkit SDK:http://artoolkit.org/documentation/doku.php?id=4_Andr
我是一名优秀的程序员,十分优秀!