[
https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320993#comment-16320993
]
ASF GitHub Bot commented on CB-13646:
-------------------------------------
infil00p closed pull request #427: CB-13646: End of an era. Using the
deprecated NDK by default breaks …
URL: https://github.com/apache/cordova-android/pull/427
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/bin/templates/cordova/lib/builders/StudioBuilder.js
b/bin/templates/cordova/lib/builders/StudioBuilder.js
index 38923e145..8322e15bd 100644
--- a/bin/templates/cordova/lib/builders/StudioBuilder.js
+++ b/bin/templates/cordova/lib/builders/StudioBuilder.js
@@ -58,7 +58,7 @@ StudioBuilder.prototype.getArgs = function (cmd, opts) {
// to allow dex in process
args.push('-Dorg.gradle.jvmargs=-Xmx2048m');
// allow NDK to be used - required by Gradle 1.5 plugin
- args.push('-Pandroid.useDeprecatedNdk=true');
+ // args.push('-Pandroid.useDeprecatedNdk=true');
args.push.apply(args, opts.extraArgs);
// Shaves another 100ms, but produces a "try at own risk" warning. Not
worth it (yet):
// args.push('-Dorg.gradle.parallel=true');
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Unable to compile native code (android.useDeprecated.Ndk not supported
> anymore)
> -------------------------------------------------------------------------------
>
> Key: CB-13646
> URL: https://issues.apache.org/jira/browse/CB-13646
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: 7.0.0
> Reporter: Michael Goffioul
> Assignee: Joe Bowser
> Priority: Critical
> Labels: cordova-next
>
> A cordova project that contains native/jni code fails to compile, because
> android.useDeprecatedNdk is not supported anymore.
> Steps to reproduce:
> 1) create a new cordova project
> 2) add android platform
> 3) mkdir platforms/android/app/src/main/jni
> 4) touch platforms/android/app/src/main/jni/Android.mk
> 5) cordova build android
> It fails with the following error:
> {code}
> FAILURE: Build failed with an exception.
> * What went wrong:
> 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:
> .../testnative/platforms/android/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=1512654767567 in gradle.properties
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]