2013-03-09 15 views
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. 
****************************** 

Vì vậy, tôi đã cố gắng để thêm một chú thích @hide để biến thành viên của tôi, nhưng nó sẽ chỉ cho tôi một lỗi:Xây dựng sửa đổi AOSP ném lỗi (Đang cố gắng để thay đổi API)

frameworks/base/core/java/android/app/admin/DevicePolicyManager.java:233: cannot find symbol 
symbol : class hide 
location: class android.app.admin.DevicePolicyManager 
    @hide 

Làm thế nào tôi có thể giải quyết vấn đề?

Trả lời

6

Tôi đã sai lầm khi sử dụng @hide như @Override, nhưng bạn phải sử dụng nó trong một chú thích javadoc:

/** 
    * @hide 
    */ 
+0

lớn phát hiện ... –

+1

thấy '@hide' được sử dụng ở đây http: // code.metager.de/source/xref/android/4.0.3/frameworks-base/core/java/android/bluetooth/BluetoothDevice.java –

+0

Bạn phải đọc một số nội dung về @hide trong Định nghĩa tương thích với Android @ source.android. com/compatibility/4.0/android-4.0-cdd.pdf –