Giter Site home page Giter Site logo

Abandoning search about icepick HOT 8 CLOSED

fahimk avatar fahimk commented on July 23, 2024
Abandoning search

from icepick.

Comments (8)

frankiesardo avatar frankiesardo commented on July 23, 2024

Are you sure your class has an @Icicle annotated field?

Otherwise your setup is not processing annotations, I would recommend
reading a general annotation processing guide for your IDE and build tool.
On 28 Apr 2015 06:01, "Fahim" [email protected] wrote:

I keep getting

Not found. Trying superclass android.support.v7.app.ActionBarActivity
MISS: Reached framework class. Abandoning search.

any idea what could be going on?


Reply to this email directly or view it on GitHub
#50.

from icepick.

fahimk avatar fahimk commented on July 23, 2024

Yes, I have the @icicle field. I'm using Android studio. Other annotation mechanisms such as fragmentargs, parcelableplease, dagger, and butterknife are all working.

I tried rebuilding/cleaning multiple times, but that wouldn't help either.

from icepick.

frankiesardo avatar frankiesardo commented on July 23, 2024

Are the relevant $$Icicle classes generated then? If you can share the relevant bits of your gradle build file and the problematic class i can give you more help.

from icepick.

fahimk avatar fahimk commented on July 23, 2024

Which folder do I check for the relevant $$Icicle classes? Here is what my code looks like:


import com.hannesdorfmann.mosby.dagger1.Injector;
import android.support.v7.app.ActionBarActivity;
public class MyActivity extends  extends ActionBarActivity implements Injector {

    @Icicle String url;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Icepick.restoreInstanceState(this, savedInstanceState);
        if(url == null) {
             url = "test";
        }
    }

    @Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        Icepick.saveInstanceState(this, outState);
    }

I set a breakpoint at url="test", and that is always being called because url is always null. I'm trying to figure out if one of the other annotation libraries is having a conflict with icepick.

from icepick.

kafji avatar kafji commented on July 23, 2024

@fahimk Do you use android apt plugin? If you do then you might want to check #54.

from icepick.

fahimk avatar fahimk commented on July 23, 2024

That was it, thanks! @frankiesardo what do you think about updating the readme to include this?

from icepick.

frankiesardo avatar frankiesardo commented on July 23, 2024

It seems more an issue of the apt plugin that conflicts with the normal provided scope, but a note in the README doesn't hurt either.

from icepick.

Anjula avatar Anjula commented on July 23, 2024

for me, it works after changing the gradle from this

implementation 'frankiesardo:icepick:3.2.0'
compileOnly 'frankiesardo:icepick-processor:3.2.0'

to this

implementation 'frankiesardo:icepick:3.2.0'
annotationProcessor 'frankiesardo:icepick-processor:3.2.0'

from icepick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.