Android Efficient debugging Artifact JRebel

Source: Internet
Author: User

I believe everyone should be using Android studio to develop Android, and if you haven't, then it's recommended to move to Android studio as soon as possible, and Google has just announced that it has completely abandoned its support for Eclipse ADT. Using Android Studio + Gradle will greatly improve your development efficiency and will be more handy to develop.

But have to admit that Android Studio eat memory, and Gradle compile speed is very slow, although there is a bunch of Gradle compiled optimized configuration can be accelerated, but the effect is not very obvious, recall the next time the code changes, want to see the effect, through a series of compilation, packaging, reinstallation, Running process, is it going to wait a long time? Greatly affect the development efficiency.

But today we introduce a debugging artifact JRebel.

Jrebel is a Java program development tool that allows you to update your application code without redeploying or restarting it. No doubt, support Android application, no configuration, super simple and convenient to use, the pro-test is very fast, can greatly save your debugging time, the official address:

https://zeroturnaround.com/

Installation and use

For Android, JRebel offers an Android Studio plugin to help you quickly debug your application and install it easily:

Open Preference-Plugins, Browse repositories, search JRebel, and click Install directly.

After the installation is successful, restart as, and you will see that the following three buttons appear on the top toolbar:

From left to right, respectively:

    • Run app with JRebel for Android

    • Debug app with JRebel for Android

    • Apply changes with JRebel for Android

As the name implies, in general we only need the first time to install the first button to run once, after the code changes, only need to click the third button, your real computer or simulator will soon show the effect of modifying the code.

The difference between JRebel and Instant Run

Someone asked, that you do not have to recompile the package, the code changes immediately after the run is not Instant run it? What's the difference between this and Instant Run?

Really like Instant run, but used Instant run students should have deep feelings, Instant run is not stable, with the process will encounter inexplicable bug, and we use the Instant run itself is to speed up the compilation speed, improve our efficiency , but sometimes using the Instant run instead makes your compilation package very slow, causing me to actually disable the Instant Run function behind myself.

And JRebel is stable, has released 2.0 version, and speed than Instant run a lot faster, the official description is faster than Instant run at least 8 times times more:

In addition to the advantages of speed, JRebel is more powerful than Instant Run, and the following are some of the official detailed comparisons:

More information can be found in the official comparison document:

https://zeroturnaround.com/software/jrebel-for-android/features/

Finally, there is a very critical, JRebel is charged, the individual users to 49 knives per year, or very expensive, but if you can save you a few 10 minutes a day or even an hour, a year down these times compared to this price is very good. But if you do not want to pay, there is also a method, you can go to the official website to register an account to get experience code, can experience free 21 days, 21 days after expiration you can re-register, it is said that the official email is not verified, interested students may wish to try.

In short, you should try this Android debugging artifact!

The original published in the public number Androiddeveloper, welcome to pay attention to the first time to get more original sharing.

Android Efficient debugging Artifact JRebel

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.