delete not needed line and edit package.xml

add if statement to suppress error in compile for missing sdk