Welcome to Android Central! Which antivirus app are you using, and which trojan did it detect? Which phone do you have? Remember that antivirus apps give false positives relatively frequency, so it might be falsely identifying one of your system apps as malware.