Answer the question
In order to leave comments, you need to log in
How long can a package nesting be?
Hello.
I write in android studio under java.
I'm refactoring code and ran into a problem - how long can a package name be?
for example, I use the Constants class described in package ru.cps.myosm.event.model;
I connect it in another import ru.cps.myosm.event.model.Constants class, which the compiler swears at.
If you reduce the nesting level (for example, ru.cps.myosm.event.Constants ), then everything goes well.
What am I doing wrong or are there nesting restrictions?
Answer the question
In order to leave comments, you need to log in
The phrase "the compiler swears" is not appropriate. Show compiler error text
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question