Can't import android.os.StrictMode?

376 Views Asked by At

In my program, I can't import android.os.StrictMode even I change SDK version.What pronblem is it? In android.os, StrictMode can't be found. I don't know what to do.

  <uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="18" />
2

There are 2 best solutions below

0
On

Try changing the build target from project properties

0
On

Just verify once by doing this:
- Go to Project properties by right clicking on the project.
- Select Android from left pane and check API level > 9. I feel you select the maximum level because, it's just required for compilation. Anyway, you can set your min SDK version in Manifest file.
- Sometimes, it doesn't load Android APIs even though you have set it properly, so you have to do above mentioned step. Then, clean & build.