[英]NDK integration is deprecated in Android 1.5 - Open Camera
I am trying to run this OpenCamera project. 我正在尝试运行此OpenCamera项目。
I have imported this project to Android Studio as Eclipse Project. 我已将该项目作为Eclipse Project导入到Android Studio。 Android has made its gradle build for the Project.
Android已为该项目进行了构建。
During the build project I got this error 在构建项目期间,我收到此错误
Error:(12, 0) Error: NDK integration is deprecated in the current plugin. 错误:(12,0)错误:当前插件不建议使用NDK集成。 Consider trying the new experimental plugin.
考虑尝试使用新的实验性插件。 For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental .
有关详细信息,请参见http://tools.android.com/tech-docs/new-build-system/gradle-experimental 。 Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
在gradle.properties中将“ android.useDeprecatedNdk = true”设置为继续使用当前的NDK集成。 Open Build.gradle file.
打开Build.gradle文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.almalence.opencam"
minSdkVersion 14
targetSdkVersion 23
ndk {
moduleName "OpenCamera-master"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile files('libs/android-support-v13.jar')
compile files('libs/androidexiv2.jar')
compile files('libs/openiab-0.9.8.6.jar')
}
I have also added Deprecation to the gradle-wrapper.properties 我还向Gradle-wrapper.properties添加了弃用
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
android.useDeprecatedNdk=true
Kindly help me solve this issue at the earliest I want to test this application on my device. 请尽早帮助我解决此问题,我想在设备上测试此应用程序。
Well I figured out the solution. 好吧,我想出了解决方案。 Gradle.properties file wasn't created.
未创建Gradle.properties文件。 So I manually created the Gradle.properties file by right clicking on the Module create new file and named the file as gradle.properties and added android.useDeprecatedNdk=true
因此,我通过右键单击“模块”以创建新文件,并将其命名为gradle.properties,并手动添加了Gradle.properties文件,并添加了android.useDeprecatedNdk = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.