Inclusion Criteria:  Subjects must meet all of the following inclusion criteria to be eligible for participation in this study:  Men or women aged more than or equal to (≥) 18 years. Locally advanced or metastatic cancer patients confirmed by histology or cytology for who that standard treatment is invalid, unavailable or intolerable Enrollment will be restricted to participants with evidence of a RET gene alteration in tumor as determined by local or central testing. And tumor tissue samples should be provided before the first administration for retrospective detection of RET gene status; blood samples are also allowed. At least one extra-cranial measurable lesion according to Response Evaluation Criteria in Solid Tumors (RECIST) criteria version 1.1. Eastern Cooperative Oncology Group (ECOG) performance status: 0~1. Estimated life expectancy greater than (>) 12 weeks. Men or women should be using adequate contraceptive measures throughout the study; Females should not be breastfeeding at the time of screening, during the study and until 6 months after completion of the study\ Females must have evidence of non-childbearing potential. Signed and dated Informed Consent Form.  Exclusion Criteria:  Treatment with any of the following:  Previous or current treatment with selective RET inhibitors. Any cytotoxic chemotherapy, investigational agents and anticancer drugs within 14 days of the first dose of study drug.  Radiotherapy with a limited field of radiation for palliation within 2 weeks of the first dose of study drug, or patients received more than 30% of the bone marrow irradiation, or large-scale radiotherapy within 4 weeks of the first dose.  Major surgery (including craniotomy, thoracotomy, or laparotomy, etc.) within 4 weeks of the first dose of study drug.  Inadequate bone marrow reserve or organ function. Uncontrolled pleural effusion or ascites or pericardial effusion. Known and untreated, or active central nervous system metastases. Refractory nausea, vomiting, or chronic gastrointestinal diseases, or inability to swallow the study drug that would preclude adequate absorption of HS-10365. History of hypersensitivity to any active or inactive ingredient of HS-10365 or to drugs with a similar chemical structure or class to HS-10365. Judgment by the investigator that the patient should not participate in the study if the patient is unlikely to comply with study procedures, restrictions, and requirements. Any disease or condition that, in the opinion of the investigator, would compromise the safety of the patient or interfere with study assessments. Pregnant women, women who are breastfeeding or who believe they may wish to become pregnant during the course of the study. History of neuropathy or mental disorders, including epilepsy and dementia Determined by the physician, any coexisting disease might lead to life threatening complications or avoid the patients from accomplishing the treatment.