"AR" augmented reality Android Programming-Vuforia SDK installation and use (Android Studio)

Source: Internet
Author: User

Vuforia is a powerful AR platform. The Vuforia API enables object recognition, image tracking, column tracking, multi-object tracking, custom target tracking, cloud recognition, word recognition, frame identification, and virtual button functions.

It supports the development of multiple environments such as Android, IOS, and unity. Vuforia has a free version and is suitable for beginners to get started. There are already 220,000 of programmers using Vuforia for AR programming, but there is no Chinese version of the API.

Installation of Vuforia

1. Download the Vuforia SDK (~7m)

Https://developer.vuforia.com/downloads/sdk Find the Android version download

Baidu Cloud Download Http://pan.baidu.com/s/1pL2CAZx

Extract Code CKDX

2. Unzip and place in the directory of the Android SDK folder

3. Download the sample, unzip it and put it in the Samples folder (~26m)

Https://developer.vuforia.com/downloads/sdk

Baidu Cloud Download Http://pan.baidu.com/s/1qX7KapY

Extract Code R5CJ

4. Running the instance code learn to use the Vuforia SDK Core feature to open Android Studio select Open Android Studio Project Import Instance

5 Gadle may fail to build after importing the project, the workaround is as follows:

1. Change the Gradle version in Build.gradle to the version in your Android studio

dependencies {
Classpath ' com.android.tools.build:gradle:2.1.0 '
}

2. Changes in Gradle-wrapper.properties

3. Change Compilesdkversion, Buildtoolsversion, targetsdkversion from app-Build.gradle to the version used in your Android studio


Distributionurl=https\://services.gradle.org/distributions/gradle-2.2-all.zip

4. Launching app Error

"The currently selected variant" Debug "uses split APKs, but none of the 1 split APKs is compatible with the current Devi Ce with density "420" and ABIs "x86".
Error while installing APK "

These examples do not support the "x86" CPU, you can create a new emulator, select the "armeabi-v7a" version of the API, but this may be very slow, it is best to use the real machine test.

5. "Vuforia App key is missing. Please get a valid key, by logging to your account at developer.vuforia.com and creating a new project "

Vuforia 4.0 above requires a license key. To register an account on the official website, you can get a License key by completing the steps under Develop->license Manager.

Copy and paste the Vuforia.setinitparameter (mactivity,mvuforiaflags) in the Initvuforiatask class in Sampleapplicationsession.java, " Put license key in the third parameter in this "). You can run it again.



"AR" augmented reality Android Programming-Vuforia SDK installation and use (Android Studio)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.