Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

(1). cannot resolve withContext method. (2). cannot resolve permission Symbol #278

Open
sachinburdak opened this issue Apr 17, 2021 · 1 comment

Comments

@sachinburdak
Copy link

java code

package com.example.sunona;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ListView;

import com.karumi.dexter.Dexter;

import java.util.jar.Manifest;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    setContentView(R.layout.activity_main);

    Dexter**.withContext(this)**   ///cannot resolve withContext method.
            .withPermission(Manifest.**permission**.Read_External_Storage)  /// cannot resolve permission Symbol
            .withListener()
            .check();
}

}

@pedrovgs
Copy link
Contributor

pedrovgs commented Jul 1, 2021

Hey @sachinburdak, sorry for the late response. Looks like you didn't add the library dependency as expected. Could you please check it out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants