Here’s how the build log should
look: https://travis-ci.org/macroid/macroid/jobs/30217986#L1177
On Sunday, July 20, 2014 12:41:45 PM UTC+1, ales wrote:
>
> Hi,
> I have decided to try macroid (it seems very promising). I have started
> with compiling the last version from GitHub with sbt 0.13.5. But "sbt
> compile" raises an error (see below). I have to use Android API 10 and this
> seems to be a problem with native Fragment class. What should I do to make
> it compile? Do you have any thougts?
>
> Thank you, Ales
>
> > compile
> [info] Compiling 24 Scala sources and 1 Java source to
> C:\data\projects\scala\macroid-master\target\android-bin\classes...
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:42:
>
> object Fragment is not a member of pack
> age android.app
> [error] import android.app.{ Fragment ? F, FragmentManager ? M, Activity
> ? A }
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:43:
>
> not found: type F
> [error] implicit object modernFragmentApi extends FragmentApi[F, M, A] {
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:43:
>
> not found: type M
> [error] implicit object modernFragmentApi extends FragmentApi[F, M, A] {
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\FragmentBuilding.scala:27:
>
> ambiguous implicit values:
> [error] both method Fragment can find fragments in object
> CanFindFragments of type [F, M, A](implicit fragmentApi:
> macroid.support.Fragme
> ntApi[F,M,A])macroid.CanFindFragments[F,F]
> [error] and method FragmentManager can find fragments in object
> CanFindFragments of type [F, M, A](implicit fragmentApi: macroid.support.
> FragmentApi[F,M,A])macroid.CanFindFragments[M,F]
> [error] match expected type macroid.CanFindFragments[M,F]
> [error] managerCtx.manager.findFrag[F](tag) map { f ?
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:15:
>
> object Fragment is not a member of pack
> age android.app
> [error] import android.app.{ Fragment ? F }
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:16:
>
> not found: type F
> [error] implicit object modernFragment extends Fragment[F] {
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\contrib\Layouts.scala:3:
>
> object GridLayout is not a member of package
> android.widget
> [error] import android.widget.{ GridLayout, LinearLayout, RelativeLayout }
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:19:
>
> not found: type F
> [error] def setArguments(f: F, b: Bundle) = f.setArguments(b)
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:45:
>
> value getFragmentManager is not a membe
> r of android.app.Activity
> [error] def activityManager = _.getFragmentManager
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:46:
>
> not found: type M
> [error] def findFragmentByTag[F1 <: F](m: M, t: String) = SafeCast[F,
> F1](m.findFragmentByTag(t))
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:46:
>
> not found: type F
> [error] def findFragmentByTag[F1 <: F](m: M, t: String) = SafeCast[F,
> F1](m.findFragmentByTag(t))
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:46:
>
> not found: type F
> [error] def findFragmentByTag[F1 <: F](m: M, t: String) = SafeCast[F,
> F1](m.findFragmentByTag(t))
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:47:
>
> not found: type M
> [error] def addFragment(m: M, i: Int, t: String, f: F) =
> m.beginTransaction().add(i, f, t).commit()
> [error] ^
> [error]
> C:\data\projects\scala\macroid-master\src\main\scala\macroid\support\FragmentApi.scala:47:
>
> not found: type F
> [error] def addFragment(m: M, i: Int, t: String, f: F) =
> m.beginTransaction().add(i, f, t).commit()
> [error] ^
> [error] 14 errors found
> [error] (compile:compile) Compilation failed
> [error] Total time: 10 s, completed 20.7.2014 13:16:46
>
--
You received this message because you are subscribed to the Google Groups
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.