Crashlytics not working with Ant - android

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.

Related

xamarin.forms, integration with libvlcsharp

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.

How to find which files are using a particular external library in an Android Studio project

The problem
Under "External Libraries" in the project view of an Android Studio project I have these libraries "stax-stax-api:1.0.1#jar" and "xpp3:xpp3:1.1.3.3#jar". They're causing me problems such that I can't build the project. I can't seem to figure out how they got there or where they're being used.
The error message I get when I build right now is:
"Error:Error: xpp3 defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]"
The error message is good except that it doesn't tell me who's using this lib in the first place.
The question
Is there an easy way to find out where they're being used in the project? Or even a way that it's easy but doesn't require looking at every file? It's a multi module project with lots of files. If I could delete them this would tell me but there's no delete option.
This could be something really simple that I'm overlooking. Any help appreciated. Happy to add more info as requested.
What I've tried
I've tried to "Analyze Dependencies" but it doesn't show me any references that I can see.
Update: I forgot to mention that I've also tried ./gradlew app:dependencies but it only tells me that my project depends on these libraries. I already know this. Is there a way to get some more specific information so I can remove the libraries?
Update 2: The accepted answer does work but I needed to redirect console output.
gradle app:dependencies
It will show you the dependencies tree of your project
At this link it is explained quite well about the command and how to use it.
Use this to redirect console output if it's clipped:
./gradlew app:dependencies > dependencies.txt
Project can be explored in "Project-tool-window" to have a look at the used external libraries which are not visible in "Android tool Window".
https://www.jetbrains.com/help/idea/project-tool-window.html
That way I solve my problem. Hope it help.

Adding crashlytics in an Android project without Gradle

I'm working with an Android Project which does not have Gradle. It is an old-style structure project which has not been updated for using Gradle.
I'm trying to find the way of adding Crashlytics but I cannot find a way.
Is there any easy way to add crashlytics without Gradle?
Thanks.
Are you using Android Studio?
All the ways you can integrate are listed on Fabric's download page
If you are not using gradle, I guess it's still a Eclipse project. And Crashlytics is now part of Fabric, so I guess it's Fabric too what you are using.
About Eclipse, I'd recommend migrating it to Android Studio and take advantage of Gradle, but anyway, the steps would be:
Clip on Help -> Install New Software
Click "Add..." and add a new repository with the name Fabric and in the location, type in https://fabric.io/download/eclipse.
Look for "Fabric" and check its checkbox
Install it, restart eclipse, and you should be seeing a new blue icon in Eclipse's toolbar, for Fabric.
Edit: for using the library files (jar and aar) directly, in a IDE independent way, or with maven, the artifactory repo for twitter can be useful: https://twittersdk.artifactoryonline.com/twittersdk/webapp/home.html?3
There, you can find crashlytics libraries: http://twittersdk.artifactoryonline.com/twittersdk/webapp/search/artifact/?4&q=crashlytics, and also fabric: http://twittersdk.artifactoryonline.com/twittersdk/webapp/search/artifact/?5&q=fabric
For every dependency, Twitter's Artifactory help with code for Ivy, Maven or Gradle integration.

I want to use jmrtd android client

I followed the direction of this page
http://sourceforge.net/p/jmrtd/code/1490/tree/trunk/androidclient/
and when I executed the last command ant -f build_jar_deps.xml
I faced the following error,
[exec] svn: E170000: URL 'https://scuba.svn.sourceforge.net/svnroot/scuba/s
cuba_sc_indep' doesn't exist
I visited the above link and I see page not found error
What is the problem ?
I know I'm a bit late with reply, but if anybody is still interested in JMRTD Android app, I have developed a new project from scratch:
https://github.com/tananaev/passport-reader
It's a standard Gradle project, so it's very easy to build from command line or Android Studio. All third party libraries, including JMRTD, are downloaded automatically from Maven.
You have to download the jarjar1.3.jar and change the path.

Obfuscate Android Source Code

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.

Categories

Resources