Skip to content

不支持Android Studio 3编译 #140

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

Closed
duguying opened this issue Oct 30, 2017 · 7 comments
Closed

不支持Android Studio 3编译 #140

duguying opened this issue Oct 30, 2017 · 7 comments

Comments

@duguying
Copy link

不支持Android Studio 3编译

Error:Execution failed for task ':react-native-update: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:
   /Users/duguying/code/opsapp/node_modules/react-native-update/android/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=1509345866453 in gradle.properties
@sofwu
Copy link

sofwu commented Nov 1, 2017

我也是,找到解决办法了吗?

@bing815
Copy link

bing815 commented Nov 2, 2017

+1
有解决办法了吗?

@duguying
Copy link
Author

duguying commented Nov 8, 2017

@sofwu @bing815 先按照提示添加set android.deprecatedNdkCompileLease=1509345866453 in gradle.properties然后等作者把项目升级到cmake吧

@SmallRuralDog
Copy link

@duguying 添加了也没用

@duoduo2012
Copy link

react-native-update build.gradle 中的defaultConfig {
//添加这行
sourceSets.main {
jni.srcDirs = []
}
}

@rongmax-gufei
Copy link

rongmax-gufei commented Mar 1, 2018

https://github.com/midas-gufei/react-native-pushy
已经更新CMakeLists.txt,支持as3.0.

@tdzl2003
Copy link
Member

5.1.0移除了ndk的依赖,应该解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants