The reason for this issue was ,
Cause :- I was adding private classes in Android Frameworks and these classes documentation/declarations must be added to “frameworks/base/api/current.txt”
Solution :- as per error logs, There are two solutions.
1) add @hide
annotation in each method's Signature
in each newly added file and its members.
2) use commands $ make update-api
then $ make -j4
or either use $make update-api && make -j4
, and code should be compilable now.