5
out/target/common/obj/PACKAGING/public_api.txt:4316: error 5: Added public field android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_MOVEMENT
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
於是,我就一個@hide註釋添加到我的成員變量,但它只會給我另一個錯誤:大廈修改AOSP拋出錯誤(試圖改變API)
frameworks/base/core/java/android/app/admin/DevicePolicyManager.java:233: cannot find symbol
symbol : class hide
location: class android.app.admin.DevicePolicyManager
@hide
我怎麼能解決這個問題?
大發現... – 2013-03-10 17:33:35
參見「@hide」在這裏使用的http:// code.metager.de/source/xref/android/4.0.3/frameworks-base/core/java/android/bluetooth/BluetoothDevice.java – 2013-03-10 18:44:25
你必須在Android兼容性定義@ source.android中閱讀關於@hide的一些有趣的東西。 com/compatibility/4.0/android-4.0-cdd.pdf – 2013-03-10 19:08:04