googlecodelabs / sceneform-intro

Other
25 stars 18 forks source link

Incompatible Types error related to Point #1

Closed stopsatgreen closed 6 years ago

stopsatgreen commented 6 years ago

In step 7, the getScreenCenter method is defined from android.graphics.Point.

In step 13, the addObject method contains the line Point pt = getScreenCenter(); This gives me an ‘incompatible types’ error (“required com.google.ar.core.Point, found android.graphics.Point”) and results in an error in the Java compile stage. I believe this line should read android.graphics.Point pt = getScreenCenter();.

claywilkinson commented 6 years ago

Thanks! I'll update the codelab shortly.