Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ./gradlew assemble
- Incremental java compilation is an incubating feature.
- :app:copyArmeabi-v7aDebugSharedLibraryStlSo UP-TO-DATE
- :libraries:testA:copyArmeabi-v7aDebugSharedLibraryStlSo UP-TO-DATE
- :libraries:testA:linktestAArmeabi-v7aDebugSharedLibrary UP-TO-DATE
- :libraries:testA:testAArmeabi-v7aDebugSharedLibrary UP-TO-DATE
- :libraries:testA:stripSymbolsArmeabi-v7aDebugSharedLibrary
- :libraries:testA:ndkBuildArmeabi-v7aDebugSharedLibrary
- :app:compilernArmeabi-v7aDebugSharedLibrarytestAMainC
- :app:linktestAArmeabi-v7aDebugSharedLibrary
- arm-linux-androideabi-g++: error: /home/pepp/workspace/ri/rn/libraries/testA/build/intermediates/binaries/debug/arm/obj/armeabi-v7a/libtestA.so: No such file or directory
- :app:linktestAArmeabi-v7aDebugSharedLibrary FAILED
- FAILURE: Build failed with an exception.
- * What went wrong:
- Execution failed for task ':app:linktestAArmeabi-v7aDebugSharedLibrary'.
- > A build operation failed.
- Linker failed while linking libtestA.so.
- See the complete log at: file:///home/pepp/workspace/ri/rn/app/build/tmp/linktestAArmeabi-v7aDebugSharedLibrary/output.txt
- * Try:
- Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
- BUILD FAILED
- Total time: 5.05 secs
- This is a sub-project under the libraries directory.
- $ tree
- .
- └── testA
- ├── build.gradle
- ├── proguard-rules.pro
- └── src
- └── main
- ├── AndroidManifest.xml
- ├── cpp
- │ ├── globals.cpp
- │ ├── globals.h
- │ ├── node.cpp
- │ └── vode.h
- ├── includes
- └── res
- └── values
- └── strings.xml
- 7 directories, 12 files
- Here's the testA/build.gradle file ...
- apply plugin: 'com.android.model.library'
- def ndkDir = System.getenv("ANDROID_NDK_HOME")
- def propertiesFile = project.rootProject.file('local.properties')
- if (propertiesFile.exists()) {
- Properties properties = new Properties()
- properties.load(propertiesFile.newDataInputStream())
- ndkDir = properties.getProperty('ndk.dir')
- }
- model {
- android {
- compileSdkVersion 24
- buildToolsVersion "24.0.0"
- defaultConfig {
- minSdkVersion.apiLevel 21
- targetSdkVersion.apiLevel 24
- versionCode 1
- versionName "1.0"
- buildConfigFields {
- create() {
- type "int"
- name "VALUE"
- value "1"
- }
- }
- }
- ndk {
- platformVersion = 21
- moduleName = 'testA'
- stl = 'gnustl_shared'
- cppFlags.add('--std=c++11')
- ldLibs.addAll(['log', 'android', 'stdc++', 'dl'])
- CFlags.addAll(['-Wall'])
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles.add(file("proguard-rules.pro"))
- }
- }
- productFlavors {
- create("arm") {
- ndk {
- abiFilters.add("armeabi-v7a")
- }
- }
- }
- sources {
- main {
- jni {
- source {
- srcDir "cpp"
- // srcDir "${ndkDir}/sources/android/native_app_glue"
- }
- exportedHeaders {
- srcDir "includes"
- // srcDir "${ndkDir}/sources/android/native_app_glue"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment