Comments (8)
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.
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.
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.
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.
@fahimk Do you use android apt plugin? If you do then you might want to check #54.
from icepick.
That was it, thanks! @frankiesardo what do you think about updating the readme to include this?
from icepick.
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.
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)
- Need a tutorial
- Add support for visibility state HOT 3
- Unable to pre-dex exception HOT 2
- Build fails with java.lang.ExceptionInInitializerError HOT 2
- Fix missing @Override in generated classes HOT 1
- Please release 3.2.0
- Any chance to release under Apache-2.0 ??? HOT 1
- How to save state of serialize object.
- java.util.HashMap cannot be cast to java.util.LinkedHashMap HOT 2
- what I did wrong? HOT 1
- Support incremental annotation processing HOT 11
- Gradle error :app:javaPreCompileDebug
- Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1 HOT 3
- Bundler that modifies object in get method
- Could not find icepick-processor.jar in jcenter() HOT 7
- Guys i am trying to run my gradle project but it is showing some errors, can someone help me
- The proguard rule does not work on MI4 (Android 4.4)
- Execution failed for task ':client-app:bootRun'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_161\bin\java.exe'' finished w ith non-zero exit value 1 HOT 3
- Bug: icepick ver3.2.0:「Developer options: ON> Dont keep activities: ON」, when re-generating Activity, instance state value can not be obtained in Icepick.restoreInstanceState
- module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icepick.