[英]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.我在为 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.似乎我必须包含类,即使它们在同一个 package 中,而在 java 中通常不需要。 If I don't, I get
cannot find symbol
at compile time.如果我不这样做,我会在编译时
cannot find symbol
。
Is there some special rule applying to AOSP?是否有一些适用于 AOSP 的特殊规则? Maybe some special settings I need to fix in Android.mk?
也许我需要在 Android.mk 中修复一些特殊设置?
I bet you have a typo in one of your class's package statements;)我敢打赌,您在班级的 package 声明中有一个错字;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.