本帖最后由 风火轮用户Ps2D1 于 2023-4-7 22:59 编辑
编译报错如下:
[backcolor=rgba(17, 17, 17, 0.96)]FAILED: out/soong/.intermediates/system/tools/xsdc/tests/resources/simple_complex_content/xsdc_simple_complex_content_tests.docs/android_common/metalava/check_current_api.timestamp [backcolor=rgba(17, 17, 17, 0.96)]( true && diff -u -F '{ *$' system/tools/xsdc/tests/resources/simple_complex_content/api/current.txt out/soong/.intermediates/system/tools/xsdc/tests/resources/simple_complex_content/xsdc_simple_complex_content_tests.docs/android_common/metalava/api/current.txt && diff -u -F '{ *$' system/tools/xsdc/tests/resources/simple_complex_content/api/removed.txt out/soong/.intermediates/system/tools/xsdc/tests/resources/simple_complex_content/xsdc_simple_complex_content_tests.docs/android_common/metalava/api/removed.txt && touch out/soong/.intermediates/system/tools/xsdc/tests/resources/simple_complex_content/xsdc_simple_complex_content_tests.docs/android_common/metalava/check_current_api.timestamp ) || ( echo -e "\n******************************\nYou have tried to change the API from what has been previously approved.\n\nTo make these errors go away, you have two choices:\n 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc)\n to the new methods, etc. shown in the above diff.\n\n 2. You can update current.txt and/or removed.txt by executing the following command:\n m xsdc_simple_complex_content_tests.docs-update-current-api\n\n To submit the revised current.txt to the main Android repository,\n you will need approval.\n******************************\n" ; exit 38 ) # hash of input list: 8947d0b6052d4eb78490672f8f898de5b6ba76e5af1795a92a73bc32e60ba235 [backcolor=rgba(17, 17, 17, 0.96)]--- system/tools/xsdc/tests/resources/simple_complex_content/api/current.txt 2023-04-04 19:04:24.533808784 +0800 [backcolor=rgba(17, 17, 17, 0.96)]+++ out/soong/.intermediates/system/tools/xsdc/tests/resources/simple_complex_content/xsdc_simple_complex_content_tests.docs/android_common/metalava/api/current.txt 2023-04-07 21:55:42.437954007 +0800 [backcolor=rgba(17, 17, 17, 0.96)]@@ -1,89 +0,0 @@ [backcolor=rgba(17, 17, 17, 0.96)]-// Signature format: 2.0 [backcolor=rgba(17, 17, 17, 0.96)]-package simple.complex.content { [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- @Deprecated public class Address { [backcolor=rgba(17, 17, 17, 0.96)]- ctor @Deprecated public Address(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public String getCity(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public final String getName(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public String getStreet(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public boolean hasCity(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public boolean hasName(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public boolean hasStreet(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public void setCity(String); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public final void setName(String); [backcolor=rgba(17, 17, 17, 0.96)]- method @Deprecated public void setStreet(String); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class KRAddress extends simple.complex.content.Address { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public KRAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class Person { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public Person(); [backcolor=rgba(17, 17, 17, 0.96)]- method public simple.complex.content.KRAddress getKRAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public String getName(); [backcolor=rgba(17, 17, 17, 0.96)]- method public simple.complex.content.SubAddress getSubAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public simple.complex.content.USAddressP getUSAddressP(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasKRAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasName(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasSubAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasUSAddressP(); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setKRAddress(simple.complex.content.KRAddress); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setName(String); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setSubAddress(simple.complex.content.SubAddress); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setUSAddressP(simple.complex.content.USAddressP); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class Person2 { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public Person2(); [backcolor=rgba(17, 17, 17, 0.96)]- method public simple.complex.content.KRAddress getKRAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public String getName(); [backcolor=rgba(17, 17, 17, 0.96)]- method @NonNull public simple.complex.content.SubAddress getSubAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public simple.complex.content.USAddressP getUSAddressP(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasKRAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasName(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasSubAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasUSAddressP(); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setKRAddress(simple.complex.content.KRAddress); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setName(String); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setSubAddress(@NonNull simple.complex.content.SubAddress); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setUSAddressP(simple.complex.content.USAddressP); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class SubAddress { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public SubAddress(); [backcolor=rgba(17, 17, 17, 0.96)]- method @Nullable public final String getChoice1_optional(); [backcolor=rgba(17, 17, 17, 0.96)]- method @NonNull public final String getChoice2_optional(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasChoice1_optional(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasChoice2_optional(); [backcolor=rgba(17, 17, 17, 0.96)]- method public final void setChoice1_optional(@Nullable String); [backcolor=rgba(17, 17, 17, 0.96)]- method public final void setChoice2_optional(@NonNull String); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public final class USAddressP extends simple.complex.content.Address { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public USAddressP(); [backcolor=rgba(17, 17, 17, 0.96)]- method public String getState(); [backcolor=rgba(17, 17, 17, 0.96)]- method public java.math.BigInteger getZipcode(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasState(); [backcolor=rgba(17, 17, 17, 0.96)]- method public boolean hasZipcode(); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setState(String); [backcolor=rgba(17, 17, 17, 0.96)]- method public void setZipcode(java.math.BigInteger); [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class XmlParser { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public XmlParser(); [backcolor=rgba(17, 17, 17, 0.96)]- method public static simple.complex.content.Person readPerson(java.io.InputStream) throws javax.xml.datatype.DatatypeConfigurationException, java.io.IOException, org.xmlpull.v1.XmlPullParserException; [backcolor=rgba(17, 17, 17, 0.96)]- method public static simple.complex.content.Person2 readPerson2(java.io.InputStream) throws javax.xml.datatype.DatatypeConfigurationException, java.io.IOException, org.xmlpull.v1.XmlPullParserException; [backcolor=rgba(17, 17, 17, 0.96)]- method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; [backcolor=rgba(17, 17, 17, 0.96)]- method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException; [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]- public class XmlWriter implements java.io.Closeable { [backcolor=rgba(17, 17, 17, 0.96)]- ctor public XmlWriter(java.io.PrintWriter); [backcolor=rgba(17, 17, 17, 0.96)]- method public void close(); [backcolor=rgba(17, 17, 17, 0.96)]- method public static void write(simple.complex.content.XmlWriter, simple.complex.content.Person) throws java.io.IOException; [backcolor=rgba(17, 17, 17, 0.96)]- method public static void write(simple.complex.content.XmlWriter, simple.complex.content.Person2) throws java.io.IOException; [backcolor=rgba(17, 17, 17, 0.96)]- } [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]-} [backcolor=rgba(17, 17, 17, 0.96)]- [backcolor=rgba(17, 17, 17, 0.96)]-e [backcolor=rgba(17, 17, 17, 0.96)]****************************** [backcolor=rgba(17, 17, 17, 0.96)]You have tried to change the API from what has been previously approved. [backcolor=rgba(17, 17, 17, 0.96)]
[backcolor=rgba(17, 17, 17, 0.96)]To make these errors go away, you have two choices: [backcolor=rgba(17, 17, 17, 0.96)] 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc) [backcolor=rgba(17, 17, 17, 0.96)] to the new methods, etc. shown in the above diff. [backcolor=rgba(17, 17, 17, 0.96)]
[backcolor=rgba(17, 17, 17, 0.96)] 2. You can update current.txt and/or removed.txt by executing the following command: [backcolor=rgba(17, 17, 17, 0.96)] m xsdc_simple_complex_content_tests.docs-update-current-api [backcolor=rgba(17, 17, 17, 0.96)]
[backcolor=rgba(17, 17, 17, 0.96)] To submit the revised current.txt to the main Android repository, [backcolor=rgba(17, 17, 17, 0.96)] you will need approval. [backcolor=rgba(17, 17, 17, 0.96)]******************************
|