Comments (6)
Hello @alexbgameson ,
why you have create manually the CMakeLists ? It should be done by the plugin.
The issue is closed, your problem is solved ?
from hidden-secrets-gradle-plugin.
@ben-j69 , I started using the plugin today and I am facing the same issue.
java.lang.UnsatisfiedLinkError: dlopen failed: library "libsecrets.so" not found
I followed the tutorial and checked if I could be doing something wrong but I didn't find why it is not creating the libsecrets.so.
I added the gradle code for C++ code into my build.gradle (app)
// Enable NDK build externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" } }
I have the folder app/src/main/cpp with 5 files: CMakeLists.txt, secrets.cpp, secrets.hpp, sha256.cpp, sha256.hpp.
Let me know if I have to open a new issue ticket.
from hidden-secrets-gradle-plugin.
Hello @andreluizreis,
sorry for your issue. Can you confirm me you enabled the ndk build ?
// Enable NDK build
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
from hidden-secrets-gradle-plugin.
@ben-j69 , Yes. I added it inside the android object after the defaultConfig in build.gradle(app). I downloaded the packages in the SDK Manager.
The Secrets.kt was created successfully. The problem is when I try to access the secret method, the app crashes.
from hidden-secrets-gradle-plugin.
@ben-j69, to make it work. I needed to add to my build.gradle(app):
android { defaultConfig { ndk { abiFilters 'armeabi-v7a', 'x86' } } }
I don't know why it is not necessary for your project or why other users didn't have that problem.
Digging more into the problem. The CPP library is not being created for 64bits platforms. It is why when I add that code above it works. However, I can't publish this code without supporting 64bits.
I don't know if it has a command to force CMAKE to build the 64 bits versions.
from hidden-secrets-gradle-plugin.
@ben-j69, I found the solution for my issue. The NDK doesn't have the platform and it was giving problems to compile in 64-bits ABIs. So, when I updated the NDK to an older version it worked.
from hidden-secrets-gradle-plugin.
Related Issues (20)
- Segmentation violation (invalid memory reference) on Android 7 HOT 2
- Obfuscator not using full 256 bits of each byte HOT 3
- It is still possible to get the keys by modifying the app HOT 7
- UnsatisfiedLinkError: dlopen failed: library "libsecrets.so" not found HOT 1
- Could not find com.android.tools.build:gradle:4.2.2.
- hideSecretFromPropertiesFile not working! HOT 1
- Gradle build failed HOT 1
- Is it possible to directly use libsecrets.so and get the key? HOT 1
- hideSecret Generating Files in Root 's`src/main/` HOT 1
- how to fix this ? HOT 1
- Crashes when secret names have underscores
- Got error HOT 2
- try hideSecretFromPropertiesFile error
- Can't declare plugin on Android Studio Flamingo with AGP 8.0.1 and Kotlin build configuration HOT 9
- Flutter integration HOT 1
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libsecrets.so" not found HOT 14
- How to add the native lib to JUnit tests
- How to get secret key from Groovy HOT 1
- error: cannot find symbol HOT 4
- Could not resolve com.klaxit.hiddensecrets:HiddenSecretsPlugin:0.2.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hidden-secrets-gradle-plugin.