frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pService.java:326: cannot find symbol
symbol : method getSystemService(java.lang.String)
location: class android.net.wifi.p2p.WifiP2pService
final WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error