-
Notifications
You must be signed in to change notification settings - Fork 147
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
Can not Add Cipher.so to my project #45
Comments
Facing same issue @linisme |
Problem is probably due to @linisme changing his username. com.github.linisme:Cipher.so:8581777457 |
Jitpack builds are failing and this repository is not the only one effected. Maybe @linisme can fix the problem but they are not maintaining the repo anymore. So the workaround for now is to add a jar of the library to your project. Easiest is to find the cached jar file of the library on your system. Obviously if you never used the library before you won't have a cached version. In that case you can build the jar file on your own. To get the cached file, find the gradle cache directory on your system and go to In there you'll find the cached jar. Copy it to your project. Mine is inside the app/libs folder. Next add this one line to your top level gradle file:
Your project should compile now. |
it works |
@AdeelTariq Thanks! it work for me too. |
@AdeelTariq, can't get it work:
Has to be something under 'dependencies' like this?
btw: the .jar file is inside app/libs/ as well. Do you have any suggestions? |
In the dependencies block you don't need to change anything. Following line should work same as before: Just follow the readme for setup as before and then follow my workaround above to add the jar. |
Thanks, my mistake, it works.
This is inside my module build.gradle:
what did I do wrong? (It worked without problems in the past ...) |
That happened to me too. But I think its due to a new Android Studio setting that is set by default now. As far as I can tell this option is preventing the Gradle tasks from running and building the keys file. Then Gradle sync the project so tasks list will be created. Next I just run the |
Okay, now the header files are generated, thanks. But if I run the app, the "cipher-lib.so" file not found :
the line where the error occurs is: |
They are all there. I also checked the path inside the .apk file, the files are inside the correct directory too. |
I followed @AdeelTariq guidelines and in the end im getting this error The file is not generated in the path showed in the image If i generate manually it appears in the refered location but when i build the project the file is erased What am i missing? |
I'm guessing you are rebuilding the project which runs the 'clean' task
first and removes any autogenerated code.
The proceeding build should then generate these files again but I think the
order of the tasks may be broken so some tasks access the files before they
are generated and throw the error.
Can you try running the make CMake task and then simply build the project
(without the clean task that is removing the build folder)
…On Tue, 31 Aug 2021, 3:33 pm CaptainSilva, ***@***.***> wrote:
I followed @AdeelTariq <https://github.com/AdeelTariq> guidelines and in
the end im getting this error
[image: Screen Shot 2021-08-31 at 11 20 35]
<https://user-images.githubusercontent.com/10654995/131487043-1ab8cde8-e9e9-483a-9d43-6592d9d181b4.png>
The file is not generated in the path showed in the image
If i generate manually it appears in the refered location but when i build
the project the file is erased
[image: Screen Shot 2021-08-31 at 11 27 49]
<https://user-images.githubusercontent.com/10654995/131487094-bac10f6e-dcb6-4686-81f6-4a6209b9f16b.png>
What am i missing?
Note: The .jar is on the app/libs folder as well
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA52ELUGQNO7AIUIBYPICHLT7SVWBANCNFSM5AQZYB2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Yes @AdeelTariq that was the issue With fastlane its smoother, I can call grade clean, then grade generateCipherSo and then assembleRelease I tried to schedule this task to run before the Build task(and in another attempt to run right after the clean task)but it does not work and I can’t find for sure what’s clearing the files I which there was a better solution or approach to this |
For all with the same Problem, the following part blocked that the libcipher-lib.so was packed into the .apk file:
I replaced it with:
So it is working now. Thank you for all your help so far @AdeelTariq! @CaptainSilva I found a solution to execute 'generateCipherSo' automatically.
So the 'extern-keys.h' will be procuced just before task 'buildCMakeDebug' , where it's needed. If you do not have different keys you can use the 'configureCMakeDebug' task:
Hope it helps. |
Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'encryptSeed' for SoExt{keys=[KeyExt{name='key', value='555555'}], signature=''} of type net.idik.lib.cipher.so.extension.SoExt. @AdeelTariq any help buddy on this error |
Hi guys. i'm trying to add this in my project. but i get error. all link has 404 error.
`A problem occurred configuring root project 'HamrahBankAnsarV3'.
Possible solution:
`
The text was updated successfully, but these errors were encountered: