Home > Mobile > [for] projects write their own class and import the class in the jar package repeated, solving
[for] projects write their own class and import the class in the jar package repeated, solving
Time:10-06
Recently, as the topic, to develop payment functions, projects myself writing class and import the jar package classes in the repeated, not just the name of the class, even the package name repeated, Such as my own project has com. Firefliex. Utils. FxUtils class, import the jar the bag also has a com. Firefliex. Utils. FxUtils class, Almost all checked some information on the net, is to solve "import two jars in class repeat" problem, change the loading sequence to go, but the problem on my side is awkward in his own project has much written in by my own FxUtils class, and the realization of the function of pay to use the jar bag FxUtils class, if only load one, the other a corresponding function definitely can't find the corresponding method,
In addition, change their project FxUtils class while it is possible to solve the problem, but there are too many references in this class project, cannot be easily modified, so, in addition to the change path, the name of the class, there is no other way, the small white one, before development projects are too simple, not encountered similar problems, the great god help ~
CodePudding user response:
Modify the name of the class in their project is one of the most simple way