简体   繁体   English

NDK集成在Android 1.5中已弃用-Open Camera

[英]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.

相关问题 未经系统许可如何在android 7.0的NDK中打开相机 - How to open camera in NDK of android 7.0 without system permission 在 Android Studio 1.5 中设置 NDK 开发 - Setting up NDK Development in Android Studio 1.5 Android NDK:不推荐使用的应用程序目标ABI:更新NDK后的armeabi错误 - Android NDK: Application targets deprecated ABI(s): armeabi error after update NDK 适用于AGK AppGameKit NDK的Chartboost SDK集成的Android runOnUIThread - Android runOnUIThread for Chartboost SDK integration for AGK AppGameKit NDK Android NDK相机路径getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) - Android NDK Camera Path getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) 如何在没有NDK的情况下在Android中处理原始相机数据 - How to proccess raw camera data in Android without NDK 渲染到imageview android camera api ndk后,BItmap似乎被旋转了? - BItmap appears to be rotated after rendering to imageview android camera api ndk? 打开Android相机应用程序并按原样使用它 - Open android camera application and use it as is Android开放式前置摄像头默认 - Android open front camera as default Torch / Flashlight应用程序(不推荐使用android.hardware.camera) - Torch / Flashlight app (android.hardware.camera is deprecated)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM