[message]

Error:(23, 23) error: package org.apache.http does not exist


Error:(59, 35) error: cannot find symbol variable HttpStatus

where T is a type-variable:

T extends Object declared in class



[why]

compileSdkVersion : 23 ~



[solved]

app> build.gradle


android {

useLibrary  'org.apache.http.legacy' //insert this line

}


message : 

- No resource found that matches the given name "Widget.AppCompat.ActionButton"

- No resource found that matches the given name "Widget.AppCompat.Light.ActionButton"

- No resource found that matches the given name "Widget.AppCompat.ActionButton"

- No resource found that matches the given name "Widget.AppCompat.Light.ActionButton"


in my case : When I imported android-support-v7-mediarouter in the Android Sample Project


solved : (http://stackoverflow.com/a/18969475)

1. Right click android-support-v7-mediarouter project, select Properties

2. Select Android

3. In the Library section at the bottom, click Add....

4. Select android-support-v7-appcompat in the dialog.

5. Click Apply.

6. Click OK.

7. Do a clean build on the android-support-v7-mediarouter project


+ Recent posts