Android 11 修改libcore update-api 遇到的问题
生活随笔
收集整理的這篇文章主要介紹了
Android 11 修改libcore update-api 遇到的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?1. 變量類型不能為short
error:Should avoid ood sized primitives;use 'int' instead of 'short' in parameter MkeyOffeset in java.crypt.Cipher.?setIdeamKey(int?KeyIndex,byte[]?Mkey, short?MkeyOffset,?int?intMkeyLen,?int?KeyType) [NoByteOrShort]? ?解決辦法:把short改成int
2.方法名稱規范要求 駝峰命名法
error: Acronyms should not be capitalized in method names: was `getChipSN`, should this be `getChipSn`? [AcronymName]?解決辦法:把getChipSN改成getChipSn
3.缺少 非空判斷@NonNull
error:Missing nullability on parameter `SNBuf` in method `getChipSN` [MissingNullability]解決辦法:
? ? ? ? ? ? ? ??import android.annotation.NonNull;
? ? ? ? ? ? ? ? @NonNull?byte[]?SNBuf
?
?
?
make api-stubs-docs-non-updatable
make api-stubs-docs-non-updatable-update-current-api
make api-stubs-docs-update-current-api
make update-api
總結
以上是生活随笔為你收集整理的Android 11 修改libcore update-api 遇到的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TVS二极管挑选法宝,聪明的你看看也知道
- 下一篇: Android 11 修改libcore