Due to invasive and serial examinations of bioactive molecules, liquid biopsy (LB) has emerged as a rapid and reliable solution for early disease detection and monitoring. Developing portable devices with high specificity and sensitivity for LB is highly valuable. To realize a generalized approach to increase the sensitivity of LB, we developed an ultrasensitive diagnostic biochip based on the amplification of miRNA by recombinase polymerase amplification and the significant enhancement of fluorescence signals by photonic crystal (PC) materials. The PCs-RPA biochip has a detection limit as low as 0.24 aM, a wide linear range of 8 orders of magnitude, and excellent specificity. Such advantages realize the accurate detection of circulating miRNAs with very low content in clinical serum samples for the precise diagnosis of nonsmall cell lung cancer.