Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

error: cannot find symbol class DateTimeView #19

Open
waynesford opened this issue May 24, 2016 · 2 comments
Open

error: cannot find symbol class DateTimeView #19

waynesford opened this issue May 24, 2016 · 2 comments

Comments

@waynesford
Copy link

waynesford commented May 24, 2016

Hi, I'm having this strange error show up. I've put your DrawGreen sample class into a new sample project, and am calling

Probe.deploy(this, new DrawGreen(), new Filter.ViewId(R.id.start_button));

on the onCreate of my Activity, just before the super.onCreate(). R.id.start_button is just the Button class.

I dug a little and it seems like this class is getting generated:

public final class ProbeProxy$android_widget_DateTimeView extends DateTimeView
    implements InterceptableView {
...
}

But it looks like it's unable to find DateTimeView.

I'm on Android Studio 2.1.1, compileSdkVersion 23.

@autovalue
Copy link

autovalue commented May 24, 2016

+1 Having the same issue!

Somewhat related to #18

Somewhat of a bummer that there's lack of development on this project.

@writtmeyer
Copy link

Though not nice, you can work aronud the problem by adding this to your build.gradle file:

     gradle.taskGraph.whenReady {
         probeDebugViews << {
             String path = buildDir.absolutePath + '/generated/source/probe/debug/'
             path += variant.mergedFlavor.applicationId.replace('.', '/')
             path += '/probe'
             File targetFolder = new File(path)
             File file = new File(targetFolder, 'ProbeProxy$android_widget_DateTimeView.java')
             println file
             file.delete()
         }
     }

It deletes the generated Java file. I added this directly below the probe {...} entry, but anywhere at the top level should work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants