• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

By adding Master/Detail Activity in android Studio throws an error

I have just created a project and added an activity Master/Detail Activity. On building the app following error occurs:

Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve javax.annotation:javax.annotation-api:1.2.

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve javax.annotation:javax.annotation-api:1.2.

Could not resolve javax.annotation:javax.annotation-api:1.2.
Required by:
project :app > com.android.support.test.espresso:espresso-core:2.2.2
> No cached version of javax.annotation:javax.annotation-api:1.2 available for offline mode.
 
Back
Top Bottom