title: Using getNeighboringCellInfo() in Android Q API 29 gives error "Cannot resolve method" instead of deprecation warning
body: <p>I have a code that uses getNeighboringCellInfo() method from android.telephony.TelephonyManager that works fine in Android Studio with compileSdkVersion set to 28, but when I set compileSdkVersion to 29 I get error "Cannot resolve method" instead of deprecation warning since this method is removed in API 29. The result is that project can not be built.</p>
  
  <p>Does anybody know how to fix this?</p>
  
  <pre><code>TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
  List&lt;NeighboringCellInfo&gt; n=telephonyManager.getNeighboringCellInfo();
  </code></pre>