The invention discloses a componentized configuration method for an Android project, which comprises the following steps of: migrating an independent module in the Android project to form a component, and maintaining the component in an independent module; constructing a jump mechanism between the components on the basis of the ARouter; the module state of the component is controlled, and then the introduction of a
resource file in the component is controlled; in the Android project, a dependency
library in a model form is introduced on the basis of Gradle Plugin; screening and identifying specific components from the Android project, and packaging the plurality of specific components; the specific component is a stable component. Compared with the prior art, the technical scheme provided by the invention has the advantages that the
code coupling degree can be reduced, the maintenance cost can be reduced, the version unification of the dependency
library is realized, and the recompilation time is shortened. In addition, the invention also relates to
electronic equipment which also has the above beneficial effects.