52inc/Scoops

IllegalStateException: Scoop needs to be initialized first!

Closed this issue · 5 comments

IllegalStateException: Scoop needs to be initialized first!

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    overridePendingTransition(0, 0);
    Scoop.getInstance().apply(this);
}

compiler says Scoop need to initialized first but i have initlized it by "Scoop.getInstance().apply(this);" what is wrong with it?

Please refer to this section of the Readme: https://github.com/52inc/Scoops#installation

how to bind Accent ?

Scoop.getInstance().bind(this, Toppings.PRIMARY, mAppBar)
.bindStatusBar(this, Toppings.PRIMARY_DARK).bind(this,
Toppings.ACCENT, ?);

On Wed, Oct 26, 2016 at 12:59 AM, Muhammad Faizan faizanjarral@gmail.com
wrote:

sorry! i have solved that issue. thank you for your help.

On Wed, Oct 26, 2016 at 12:50 AM, Muhammad Faizan faizanjarral@gmail.com
wrote:

thank u so much for quick reply.... i have another problem, i will be
thanks full to u if u give me solution.

java.security.InvalidParameterException: Nothing has been bound to the
Topping of the given id (2).

this error comes on passing primary colour, primary dark or accent
colour.

On Wed, Oct 26, 2016 at 12:36 AM, Drew Heavner notifications@github.com
wrote:

Please refer to this section of the Readme:
https://github.com/52inc/Scoops#installation


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AS0XhVhjErHdQlF--KJxDrL-5_SGXTXiks5q3longaJpZM4KgXnQ
.

sorry! i have solved that issue. thank you for your help.

On Wed, Oct 26, 2016 at 12:50 AM, Muhammad Faizan faizanjarral@gmail.com
wrote:

thank u so much for quick reply.... i have another problem, i will be
thanks full to u if u give me solution.

java.security.InvalidParameterException: Nothing has been bound to the
Topping of the given id (2).

this error comes on passing primary colour, primary dark or accent colour.

On Wed, Oct 26, 2016 at 12:36 AM, Drew Heavner notifications@github.com
wrote:

Please refer to this section of the Readme:
https://github.com/52inc/Scoops#installation


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AS0XhVhjErHdQlF--KJxDrL-5_SGXTXiks5q3longaJpZM4KgXnQ
.

thank u so much for quick reply.... i have another problem, i will be
thanks full to u if u give me solution.

java.security.InvalidParameterException: Nothing has been bound to the
Topping of the given id (2).

this error comes on passing primary colour, primary dark or accent colour.

On Wed, Oct 26, 2016 at 12:36 AM, Drew Heavner notifications@github.com
wrote:

Please refer to this section of the Readme: https://github.com/52inc/
Scoops#installation


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AS0XhVhjErHdQlF--KJxDrL-5_SGXTXiks5q3longaJpZM4KgXnQ
.

Could you please open another issue and post the full stacktrace so I could further document and help you with your issue