Salam, I have a complete source code, but I want to make an obfuscated .apk. I have read all topics, but this didn't help me. Please help! I am using eclipse for development. Here is the details about my app.
Android SDK folder : C:\Android\android-sdk-windows<br>
Project Folder : C:\Android\workspace\HijriCalendar<br>
Ant Folder : C:\Android\ant<br>
proguard folder : C:\Android\proguard<br>
main activity : hussain.Musaji.HijriCalendarActivity.java<br>
Please anyone tell me step by step procedure to make obfucated .apk
Thanks in advance.
I'm developing an Android application using Eclipse. But for building an obfuscated apk, it was more helpful to use the ant build instead. Here is what I recommend:
Use the latest version of Proguard which may not be the one integrated in your Android SDK version. Install it wherever you want and add the following line to your local.properties file to use it: proguard.jar=C:/yourpath_to_pg/lib/proguard.jar.
This article gives a good overview on confugring proguard for Android applications.
If you are using LVL for managing your applications's licensing, please refer to
this article.
You may also use proguard when building your application in debug mode by invoking ant as follows:
> ant debug -Dproguard.enabled=true
As Nunonix already mentioned, it may be helpful to see your proguard.cfg file.
Hope, this helps you.
Related
did someone know how to solve this?
I created Xamarin.forms project with UWP, Android and IOS
Everytime when I try to run project get this error
"LibVLCSharp.Shared.VLCException: 'Failed to load libvlc.dll, error 126. Please make sure that this library, libvlccore.dll and the plugins are copied to the AppX folder. For that, you can reference the VideoLAN.LibVLC.WindowsRT NuGet package.'"
Yes I added LibVLCSharp and ibVLCSharp.Forms
this is bitbucket repo (public)
https://alekswhite#bitbucket.org/alekswhite/video.git
To allow updates of the libvlc library, it is not installed by default.
Did you install the LibVLC package that corresponds to your platform(in each platform-specific project) ?
See the Readme of the repository for that.
If you did install the LibVLC package, please update your question with a repository with a sample code to reproduce your issue.
I am implementing crashlytics with Ant. Imported the jar and required ant scripts. However the package name is not found when building the apk. Back to documentation provided by Fabric
https://crashlytics.com/downloads/ant,
Seems like it's down.
Anyone can confirm if it still working with Ant? Or moving forward with Gradle is the only solution? Thank you.
Mike from Fabric here.
The URL you're using is out of date and you should use: https://fabric.io/downloads/ant to get the Ant instructions and files.
i'm following this tutorial from firefox android source code https://wiki.mozilla.org/Mobile/Fennec/Android
but, the problem i can't ./mach build, ./mach package, ./mach install and i already create .mozconfig file in mozilla-central but it's can't found the file.
like this:
i'm using Ubuntu 14.04.2
thx for help
You probably had an error during the initial "mach bootstrap" step. Your screenshot tells us, that mach can't find the android sdk tools. It's looking for them under ~/.mozbuild/android-sdk-linux/.
One thing you could do is to manually put your sdk under that directory and then retry "mach bootstrap" from the source dir to resolve the remaining dependencies.
Also see these steps for manual setup of the build tools: https://wiki.mozilla.org/Mobile/Fennec/Android/Detailed_build_instructions
I am using the apdfview project which is on this site
http://code.google.com/p/apdfviewer
but I cant build the source project because it tells me it can't find a library libpoppler_jni.so and I cant find it, and although I have the source code in C, I don't know how to build it and generate it.
Can anyone please help me?
You need to install the NDK and run ndk-build on the project to generate that .so file, from what I can tell.
I am using InteliJ Idea Community edition to develop android apps. I was trying to write UnitTests for a HelloWorld App as described in link text
. However I keep on getting an error
Found main project package: com.example.helloandroid
Found main project activity: .HelloAndroid
Error: Unable to load the main project's default.properties
On going through the files that were created by InteliJ Idea, I saw that all the files as mentioned in d.android.com/guide/developing/other-ide.html#CreatingAProject are being created except for defaul.properties and build.properties.
Is there any way we can create these files?
I had the same problem you're describing as I'm also developing using IntelliJ and these are the steps I followed to create a valid default.properties
1) Create a project using Android (with no IDE) the instructions are here. I created using exactly the same information than in my original IntelliJ project but looking at the resulting file it was not that important.
2) Copy the default.properties to your own project
In order to create the project you will have to know the id of the target you are using, you can obtain the list by executing android list targets.
Once I created the project I opened the default.properties file and the only thing important there was the target, in my case Project target.target=android-8
Hope this helps although your question is stackoverflow since a long time already.
Regards
PS: if I knew how to attach a file you wouldn't require to follow the above steps as the resulting file has no project specific information except for the target (if you want me to send it to you just tell me)
This is a bug and has been fixed but the fix has not been released yet:
http://youtrack.jetbrains.net/issue/IDEA-69343?projectKey=IDEA&query=android+default.properties