echopen / PRJ-medtec_androidapp

Code and issue about EchOpen display -- now on, #Android -- Perhaps some duplication with http://echopen.org/
BSD 3-Clause "New" or "Revised" License
49 stars 43 forks source link

Rebild failed due to NDK support deprecated error. #12

Open honeydurga opened 8 years ago

honeydurga commented 8 years ago

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'
  2. 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" } } ++++++++++++++++++++++++++++++

  1. 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 commented 8 years ago

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 ?