Android Studio NDK compiles "$USE _deprecated_ndk=true" Exception problem resolution

Source: Internet
Author: User

My project is Https://github.com/leixiaohua1020/simplest_ffmpeg_mobile/tree/master/simplest_ffmpeg_android_streamer. Here's the download, Thor's demo, but he's only

The version of Eclipse is available, and this compilation problem is encountered when you go to as.

The error description can be added in gradle.porperties $USE _deprecated_ndk= true resolved.

Actually, it doesn't work.

The other link given in the error message is useful:

Http://tools.android.com/tech-docs/new-build-system/gradle-experimental?pli=1#TOC-Gradle-Requirements

Mostly modified, three places that can be compiled through.

1, the main project below the Build.gradle

dependencies {
        classpath ' Com.android.tools.build:gradle:2.2.0-beta2 '
Classpath "COM.ANDROID.TOOLS.BUILD:GRADLE-EXPERIMENTAL:0.7.0-ALPHA4"

}
Change to the following

2, Gradle directory below the Gradle-wrapper.properties

Distributionurl=https\://Services.gradle.org/distributions/gradle-2.10-all.zip

The Gradle version of these two places needs to be matched, and the corresponding relationship on the above site is installed

3, the app directory below the Build.gradle

Apply plugin:'com.android.model.application'//need to be modified here, insert modelmodel{//Here need to add a model package Android {Compilesdkversion +buildtoolsversion"24.0.1"Defaultconfig {ApplicationID"Com.leixiaohua1020.sffmpegandroidstreamer"Minsdkversion.apilevel15//Need to changeTargetsdkversion.apilevel//
Plus ndk{modulename .="Avcode"}} buildtypes {release {minifyenabledfalseproguardfiles.add (File ("Proguard-rules.pro")) Signingconfig= $("Android.signingConfigs.myConfig")}}} android.signingconfigs {Create ("Myconfig") {StoreFile".. /debug.keystore"Storepassword"Android"Keyalias"Androiddebugkey"Keypassword"Android"Storetype"JKs" } }}

Android Studio NDK compiles "$USE _deprecated_ndk=true" Exception problem resolution

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.