简体   繁体   中英

Do I have to include classes from the same package in AOSP java?

I have a weird behavior in one service I am developing for AOSP.

It seems like I have to include classes even if they are in the same package, while this is normally not needed in java. If I don't, I get cannot find symbol at compile time.

Is there some special rule applying to AOSP? Maybe some special settings I need to fix in Android.mk?

I bet you have a typo in one of your class's package statements;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM