Note that there are some explanatory texts on larger screens.

plurals
  1. POcannot find the class file for com.android.volley.request
    primarykey
    data
    text
    <p>Hi i am trying to develop a android native App for salesforce by the help of </p> <pre><code> Forcedroid Mobile SDK </code></pre> <p>my file or directory is as above figure <img src="https://i.stack.imgur.com/tCQWp.png" alt="enter image description here"></p> <p>But i am getting two error in my Mainctivity class</p> <pre><code> private void sendRequest(String soql) throws UnsupportedEncodingException { RestRequest restRequest = RestRequest.getRequestForQuery(getString(R.string.api_version), soql); client.sendAsync(restRequest, new AsyncRequestCallback() { @Override public void onSuccess(RestRequest request, RestResponse result) { try { listAdapter.clear(); JSONArray records = result.asJSONObject().getJSONArray("records"); for (int i = 0; i &lt; records.length(); i++) { listAdapter.add(records.getJSONObject(i).getString("Name")); } } catch (Exception e) { onError(e); } } @Override public void onError(Exception exception) { Toast.makeText(MainActivity.this, MainActivity.this.getString(SalesforceSDKManager.getInstance().getSalesforceR().stringGenericError(), exception.toString()), Toast.LENGTH_LONG).show(); } }); } </code></pre> <p>first error is </p> <pre><code> api_version cannot be resolved or is not a field </code></pre> <p>and second error is </p> <pre><code> The type com.android.volley.Request cannot be resolved. It is indirectly referenced from required .class files </code></pre> <p>I have little knowledge about android but SalesForce SDK is new for me.Not even single time i am able to run my created App "sfaDroidpp". Please take me out of this issue. Thanks in advance to all. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload