2022cm Mobile App Research Center

Source: Internet
Author: User

About Android 27.1.1 incompatibility issue--Resolving support-annotations version conflicts

Add a piece of code to the Build.gradle, note that the whole project has two build.gradle, one in the project root and the other in App-->build.gradle, and we need to select the second one,

We open this build.gradle, the name shows the app

Add the following code inside:

Resolving support-annotations Version Conflicts
Configurations.all {Resolutionstrategy
. Force ' com.android.support:support-annotations:27.1.1 '

}

The above code resolves the support-annotations version conflict
When the file reloads, it won't get an error.
{
Return sendmessagedelayed (msg, 0);
}

public final boolean sendEmptyMessage(int what)  {      return sendEmptyMessageDelayed(what, 0);  }  

Public Final Boolean sendMessage (Message msg) 2022CMA

public final boolean sendEmptyMessageDelayed(int what, long delayMillis) {      Message msg = Message.obtain();      msg.what = what;      return sendMessageDelayed(msg, delayMillis);  }  public final boolean sendEmptyMessageAtTime(int what, long uptimeMillis) {      Message msg = Message.obtain();      msg.what = what;      return sendMessageAtTime(msg, uptimeMillis);  }  

Public Final Boolean sendmessagedelayed (Message msg, long Delaymillis)
{
if (Delaymillis < 0) {
Delaymillis = 0;
}
Return Sendmessageattime (MSG, systemclock.uptimemillis () + Delaymillis);
}

public boolean sendmessageattime (Message msg, long Uptimemillis) {
MessageQueue queue = Mqueue;
if (queue = = null) {
RuntimeException e = new RuntimeException (
This + "sendmessageattime () called with no Mqueue");
LOG.W ("Looper", E.getmessage (), E);
return false;
}
return Enqueuemessage (Queue, MSG, uptimemillis);
}

2022cm Mobile App Research Center

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.