Closed peppy112 closed 10 years ago
Hi peppy, I'm not sure this has anything to do with the IDE you're using. That code wasn't changed from the AOSP codebase this porting comes from, so I have no suggestion here on how to solve this. It is very strange that you're getting the error.
A couple of questions: which version of Android/device are you running this on? And, did you try cloning the repo afresh and rebuilding it? It could simply be an issue with AIDE or aapt...
I tested it on 4.0.4 and 4.1, both gave the same error. I just couldn't get what the IDE has got to do with it. I tried on eclipse too (I rarely use it) , by downloading zip from github , but wasn't able to get it run, lots of 'could not resolve kinda' errors. Could u send me a working eclipse project which would run out of box (unZip n run). Glowpad is what I'm looking for. Otherwise, I had to comprimise and use slide to unlock instead
On Sat, Dec 28, 2013 at 6:32 PM, Sebastiano notifications@github.comwrote:
Hi peppy, I'm not sure this has anything to do with the IDE you're using. That code wasn't changed from the AOSP codebase this porting comes from, so I have no suggestion here on how to solve this. It is very strange that you're getting the error.
A couple of questions: which version of Android/device are you running this on? And, did you try cloning the repo afresh and rebuilding it? It could simply be an issue with AIDE or aapt...
— Reply to this email directly or view it on GitHubhttps://github.com/rock3r/GlowPadBackport/issues/2#issuecomment-31296181 .
I'm afraid I don't use Eclipse, can't help you with that. The codebase has been tested on Android 1.6, 2.3, 4.0.4, 4.1 and 4.2 and has always worked. I only had a rare crash reported by users of the demo app on the Play Store which is probably this same one (I don't remember), but couldn't reproduce nor fix it. Anyway if you are sure you have all the resources in the right place it could only be a compilation problem. If you hit that ISE it means the app once built doesn't have the resources it needs, because they aren't in the apk. Could you please confirm that the drawables are indeed in the apk? Apks are basically zip files, so you can use any archive explorer to look into it.
I'm going to close this because there's no answer from peppy in the last 23 days.
Hi rock3r,
Imported ur library in to my sample project but each time I try to run it I face this same error in GlowPadView.java
at[ if(mTargetDrawables == null || mTargetDrawables.size()==0) ] - to be specific. That condition turns true and it throws the IllegalStateException as coded.
What could be the reason? The library is untouched and none of the arrays,attrs are missing. It compiles successfully but throws an error at runtime.
By the way, I am using AIDE for android. But looking at the nature of the error thrown, I don't think IDE has anything to do with it. Please respond soon. Even though this is not the main functionality of my app, its going to be a valuable addition. Thanks for ur effort to pull n port this library.