Closed highwater closed 9 years ago
Pietro also reported seeing this error a lot. I think the cause is related to what you suggest. Will look into it today.
I pushed a fix to make this a soft error instead of causing a crash. However, I think the root cause of this is using a mismatched version of the Android library, as you suggest.
Thanks, Sam. Hope you can fix this soon.
Wait i think the issue should be left open until it's properly fixed.
Oh, I don't think there's anything I can do to fix this. The user decides what version of the Android library to use via the -android_jar
flag. I don't think there's anything I can do to prevent the soft error if the user decides to use the wrong version :). I suppose I could include all of the JARs as part of the Droidel project and automatically select which one to use. However, this would take away the ability to test how an app behaves with different (manually selected) versions using Droidel, which I think is valuable.
Hmm that's true. But why, in the first time, droidel looks for android.app.Fragment
when the app itself doesn't use it? And the problem I think won't be only applied to Fragment
class but to every class that has support version.
The "looking for android.app.Fragment
" that you describe is how Droidel determines whether an app is using Fragment
's or not. The problem is that Droidel previously crashed on failure to find android.app.Fragment
in any app (even one's that don't use Fragment
's), which was definitely a bug. I fixed that bug yesterday, though you may still get a spurious log message about not finding Fragment
that you can ignore.
Ah i see, so the problem is only with Fragment
then?
Fragment
's are the only lifecycle type I support that doesn't exist in every version of the Android library, so I think this problem should just be limited to Fragment
's.
That's good to know, thanks for the explanation :)
Hi, I found this error:
I tested an APK with API level 10, so it's using support library to use Fragment. I would love to trace this but unfortunately I don't know Scala for now. In my understanding, droidel should not search for
android.app.Fragment
if the apk is using api < 11, right?Edit: anyway, i think i should check with another apks