Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebild failed due to NDK support deprecated error. #12

Open
honeydurga opened this issue Feb 8, 2016 · 1 comment
Open

Rebild failed due to NDK support deprecated error. #12

honeydurga opened this issue Feb 8, 2016 · 1 comment
Labels

Comments

@honeydurga
Copy link

Cloning and project build in Android studio 1.5 fails with the following error

Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
WARNING [Project: :app] Current NDK support is deprecated. Alternative will be provided in the future.
:app:cleanNative FAILED
Error:Execution failed for task ':app:cleanNative'.

A problem occurred starting process 'command 'C:\Users\mj\AppData\Local\Android\sdk\android-ndk-r10e/ndk-build.com''
Information:BUILD FAILED
Information:Total time: 1.418 secs
Information:1 error
Information:0 warnings

Information:See complete output in console

Kindly find attached herewith the snapshot file created during cloning and project build.
The latest version of android studio is 1.5. For version 1.2.3 above, the user have to use 'Experimental plugin' for NDK. Unfortunately, using or working with "Experimental Pugin" is quite tedious for existing projects as it requires significant modification in the way the files are written. (http://tools.android.com/tech-docs/new-build-system/gradle-experimental)
http://stackoverflow.com/questions/31979965/after-updating-android-studio-to-version-1-3-0-i-am-getting-ndk-integration-is
Kindly note that following steps have already been tried (both separately and in combination):

  1. Changing the build.gradle properties (Project)
    classpath 'com.android.tools.build:gradle:1.1.0' changed to classpath 'com.android.tools.build:gradle:1.5.0'
  1. Changing the bil.gradle (app)
    +++++++++++++++++++++++++++
    compileSdkVersion 19
    buildToolsVersion "22.0.1"

defaultConfig {
applicationId "com.echopen.asso.echopen"
minSdkVersion 15
targetSdkVersion 18
versionCode 1
versionName "1.0"
ndk {
moduleName "EchOpen"
}
}
++++++++++++++++++++++++++++++
Changed to
+++++++++++++++++++++++++++
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.echopen.asso.echopen"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
ndk {
moduleName "EchOpen"
}
}
++++++++++++++++++++++++++++++
3. Tried to build the app in Android studio version 0.9 and 1.0 also yet the same error
Kindly suggest the way to rebuild or way around.
Snapshots.docx

@benchoufi benchoufi added the bug label Feb 8, 2016
@benchoufi
Copy link
Member

apart form this thread, you told me you got the issue

`execution failed for task ':app:compileDebugNdk' failed to run this command

ndk-build.cmd`

I suggested you this SO post

The issue you were experiencing seems to come from the ndk plugin automatic integration. You should deactivate it. Did you try the response of the suggested SO post ?

By the way, it is not clear which version of android studio. Do you confirm it is 1.5 ?

clecoued pushed a commit that referenced this issue Jul 7, 2017
clecoued pushed a commit that referenced this issue Jul 7, 2017
clecoued pushed a commit that referenced this issue Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants