The rapid iteration of the Android system and its open source features have resulted in many variants of Android malware, which brings great challenges to the classification and detection of Android malware. Machine learning is the mainstream method for classifying malware,with the development of deep learning and the success of convolutional neural network (CNN) ,especially in image classification, this paper proposes an Android malware detection and its classification method based on and transfer learning. First, the Android DEX file is extracted and converted to a grayscale image being put into CNN for training classification. Drebin and AMD datasets were used in the experiment. The experimental results show that the accuracy of the proposed method in the classification of Android malware family is 97.36%, and the accuracy rates of Android malware detection are both more than 99% in the two datasets. Experiments show that the proposed method has high classification accuracy and generalization ability.