I have generate my aar library with android studio, and published it to my private repo on github. when I reference my aar lib in other project, I can easilly find my source code, just press ctrl+B(on windows). So, how can I hide my source code?
Asked
Active
Viewed 2,779 times
1
-
I guess code is just decompiled when you view it in Android Studio. – Jul 22 '15 at 11:37
-
you can use obfuscation like ProGuard. That's the only way to hide the code. – Vladyslav Matviienko Jul 22 '15 at 11:41
-
Hide a library source code https://stackoverflow.com/questions/42133700/hide-a-library-source-code – Adil Jan 23 '18 at 04:53
1 Answers
0
The code is just decompiled; Java bytecode is very much equivalent to the original source code. The only way to hide the code is obfuscation; you can use tool like ProGuard (or commercial extended version of it, DexGuard) to do obfuscation.

avysk
- 1,973
- 12
- 18