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