我的app.gradle文件可能已损坏。我不记得更改了。我的xml文件和一些Java文件也是如此。这是我的gradle代码
<?xml version="1.0" encoding="UTF-8"?>
<root>
<item
name="android.security.ConfirmationCallback void onConfirmed(byte[]) 0">
<annotation
name="android.support.annotation.NonNull" />
</item>
<item name="android.security.ConfirmationPrompt void presentPrompt(java.util.concurrent.Executor, android.security.ConfirmationCallback) 0">
<annotation name="android.support.annotation.NonNull" />
</item>
<item name="android.security.ConfirmationPrompt void presentPrompt(java.util.concurrent.Executor, android.security.ConfirmationCallback) 1">
<annotation name="android.support.annotation.NonNull" />
</item>
<item name="android.security.KeyChain android.content.Intent createInstallIntent()">
<annotation name="android.support.annotation.NonNull" />
</item>
<item name="android.security.KeyChain boolean isBoundKeyAlgorithm(java.lang.String) 0">
<annotation name="android.support.annotation.NonNull" />
<annotation name="android.support.annotation.StringDef">
<val name="value" val="{android.security.keystore.KeyProperties.KEY_ALGORITHM_RSA, android.security.keystore.KeyProperties.KEY_ALGORITHM_EC, android.security.keystore.KeyProperties.KEY_ALGORITHM_AES, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA1, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA224, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA256, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA384, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA512}" />
</annotation>
</item>
<item name="android.security.KeyChain boolean isKeyAlgorithmSupported(java.lang.String) 0">
<annotation name="android.support.annotation.NonNull" />
<annotation name="android.support.annotation.StringDef">
<val name="value" val="{android.security.keystore.KeyProperties.KEY_ALGORITHM_RSA, android.security.keystore.KeyProperties.KEY_ALGORITHM_EC, android.security.keystore.KeyProperties.KEY_ALGORITHM_AES, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA1, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA224, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA256, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA384, android.security.keystore.KeyProperties.KEY_ALGORITHM_HMAC_SHA512}" />
</annotation>
</item>
<item name="android.security.KeyChain java.security.PrivateKey getPrivateKey(android.content.Context, java.lang.String)">
<annotation name="android.support.annotation.Nullable" />
<annotation name="android.support.annotation.WorkerThread" />
</item>
<item name="android.security.KeyChain java.security.PrivateKey getPrivateKey(android.content.Context, java.lang.String) 0">
<annotation name="android.support.annotation.NonNull" />
</item>
<item name="android.security.KeyChain java.security.PrivateKey getPrivateKey(android.content.Context, java.lang.String) 1">
<annotation name="android.support.annotation.NonNull" />
</item>
我曾尝试将项目还原到以前的版本,但似乎无法正常工作。 我的大多数xml文件都存在相同的问题。 我想知道这个问题,以便我知道如何处理,以防万一我在不久的将来碰到它,甚至避免它。