WAI
Status Update
Comments
je...@google.com <je...@google.com> #2
Here's a really detailed StackOverflow answer that seems to point out some things to look at in relation to this behaviour:
http://stackoverflow.com/a/14293528/238753
ch...@google.com <ch...@google.com> #3
Thank you for your feedback. We assure you that we are doing our best to address the issue reported, however our product team has shifted work priority that doesn't include this issue. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with latest bug report here https://goo.gl/TbMiIO .
de...@gmail.com <de...@gmail.com> #4
Tested and confirmed that this bug affects Android 4.4 - 5.1 but was fixed in Android 6.0.
I've attached an updated sample project since the original one needed some tweaks to get it building.
I've attached an updated sample project since the original one needed some tweaks to get it building.
ys...@gmail.com <ys...@gmail.com> #5
where I put useDeprecatedNdk=true
and thanks
and thanks
de...@gmail.com <de...@gmail.com> #6
Create a file called `gradle.properties` (if there isn't one already) in the root of your project and add this line to it
android.useDeprecatedNdk=true
android.useDeprecatedNdk=true
ys...@gmail.com <ys...@gmail.com> #7
it works thanks
but now i have this if u have and an idea about this pb tell me plz
and thanks
Error:Execution failed for task ':openCVSamplefacedetection:compileDebugNdk'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\ndk\ndk-build.cmd'' finished with non-zero exit value 2
but now i have this if u have and an idea about this pb tell me plz
and thanks
Error:Execution failed for task ':openCVSamplefacedetection:compileDebugNdk'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\ndk\ndk-build.cmd'' finished with non-zero exit value 2
de...@gmail.com <de...@gmail.com> #8
Looks like your native code contains errors. Examine the log or try to run ndk-build.cmd manually from command line in project root.
bi...@gmail.com <bi...@gmail.com> #9
Hi All,
I am facing the same issue I have updated my gradle.properties file with "android.useDeprecatedNdk=true" but that didn't help me. Please find the error and help me to fix the issue.
Error:Execution failed for task ':app:compileDebugNdk'.
> Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system.
Consider using CMake or ndk-build integration. For more information, go to:
https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile
To get started, you can use the sample ndk-build script the Android
plugin generated for you at:
C:\Android\opencv\app\build\intermediates\ndk\debug\Android.mk
Alternatively, you can use the experimental plugin:
https://developer.android.com/r/tools/experimental-plugin.html
To continue using the deprecated NDK compile for another 60 days, set
android.deprecatedNdkCompileLease=1516396152711 in gradle.properties"
"
I am facing the same issue I have updated my gradle.properties file with "android.useDeprecatedNdk=true" but that didn't help me. Please find the error and help me to fix the issue.
Error:Execution failed for task ':app:compileDebugNdk'.
> Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system.
Consider using CMake or ndk-build integration. For more information, go to:
To get started, you can use the sample ndk-build script the Android
plugin generated for you at:
C:\Android\opencv\app\build\intermediates\ndk\debug\Android.mk
Alternatively, you can use the experimental plugin:
To continue using the deprecated NDK compile for another 60 days, set
android.deprecatedNdkCompileLease=1516396152711 in gradle.properties"
"
Description
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
android {
defaultConfig {
...
ndk {
moduleName "JniBitmapOperationsLibrary"
ldLibs "log", "jnigraphics"
}
...
}
}
With gradle android plugin 1.2.3 it worked fine. After updating to android plugin 1.3.0 (NOT listed as experimental) I'm getting errors during the build:
Error:(50, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see
Adding android.useDeprecatedNdk doesn't do anyhting. Adding "useDeprecatedNdk = true" inside "android{}" block throws an exception:
Error:(8, 0) No such property: useDeprecatedNdk for class: com.android.build.gradle.AppExtension_Decorated