The invention relates to an Android computing migration online decision-making method based on code analysis. The method comprises the following steps of firstly, modeling the classes, methods, objects and calling relations of the applications based on a code analysis technology; secondly, on the basis of dynamic analysis, modeling an application model of the method execution time and the data transmission of the applications; and finally, based on the application model, proposing a context model help decision, and carrying out decision scheme evaluation and optimal scheme selection through afitness function. According to the method, the response time of each migration decision scheme is calculated based on an object call graph, the method execution time and the data transmission quantityobtained by the code analysis technology, and the optimal deployment scheme is obtained, so that the execution time and the energy consumption can be reduced.