Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Compilation Error: class file for android.app.TaskStackBuilder not found #24

Closed
christopherperry opened this issue Feb 1, 2013 · 7 comments

Comments

@christopherperry
Copy link

Hey guys,

First time trying to use this lib. Dropped the dependency in my pom, wrote a quick test just to inflate a View into an Activity, and assert that it isn't null. When I try to compile, I get the error:

class file for android.app.TaskStackBuilder not found

I've only tried a single assertion:

assertThat(view).isNotNull();

the error points back directly to this line.

@christopherperry
Copy link
Author

I see the problem, this is an API level 16 class, so to use fest-android you have to compile on at least this API. Can you please specify this clearly on the site, and readme.

@JakeWharton
Copy link
Member

You can avoid this by instantiating the assertions directly rather than using the static convenience methods.

@christopherperry
Copy link
Author

Still, you guys should document this.

@JakeWharton
Copy link
Member

Are you running on JVM or Dalvik?

@JakeWharton
Copy link
Member

Ah, that's stupid. We'll hide it somewhere in the README.

@JakeWharton
Copy link
Member

9bb47ca

@christopherperry
Copy link
Author

Nice, thanks Jake.

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