Yes.. Its working fine after placing *sourceSets.main* in gradle as you 
said..!! Thank you *Jeffrey Walton* . *-----* *Cryptopp Rocks -----.*

But in MainActivity JNI function name shows in red color

public native int fun(int i);


Hint shows as "cannot resolve corresponding JNI function"


This occurs only after placing *sourceSets.main* in gradle but it doesn't 
affect Successful Build. 


On Saturday, December 12, 2015 at 6:16:32 AM UTC+5:30, Jeffrey Walton wrote:
>
>
>
> On Friday, December 11, 2015 at 2:53:51 AM UTC-5, Jeeva S K wrote:
>>
>> I am using* Android Studio 1.5* and* NDK r10e (64-bit)*.
>>
>> Here i am trying to compile your sample project (*Android-PRNG*).
>>
>> So, I downloaded the project from github link and imported it into 
>> Android Studio 1.5.
>>
>> ...
>> Why this problem occurs is am doing wrong?
>>
>
> I don't think you are doing anything wrong. I seem to recall Android 
> Studio does not support JNI well. Maybe it has changed, or maybe its still 
> a problem...
>
> It appears the problem lies somewhere with Android Studio and paths. Maybe 
> this will help: "JNI and Gradle in Android Studio", 
> http://stackoverflow.com/q/21096819 .
>
>     sourceSets.main {
>         jni.srcDirs = []
>         jniLibs.srcDir 'src/main/libs'    }
>
>
> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to