googlecodelabs / hello-beacons

Hello, Beacons! Proximity & Context-aware Apps
https://codelabs.developers.google.com/codelabs/hello-beacons/
Apache License 2.0
15 stars 14 forks source link

Step 7: MessageFilter.Builder() error #1

Open gunnarwb opened 8 years ago

gunnarwb commented 8 years ago

I'm following the tutorial from here: https://codelabs.developers.google.com/codelabs/hello-beacons/#6

But after following it step by step I'm getting an error on this line:


                .setFilter(new MessageFilter.Builder()
                        .includeNamespacedType("some_namespace", "some_type")
                        .build();

Error:

/Users/xxxxx/AndroidStudioProjects/hello-beacons/HelloBeacons-Subscribe/app/src/main/java/com/google/android/gms/nearby/messages/samples/hellobeacons/MainActivity.java
Error:(198, 33) error: ')' expected
:app:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
sigurd120 commented 8 years ago

This problem is caused by a missing call to the build() method and is discussed here: http://stackoverflow.com/questions/39041134/beacons-in-android-error-in-tutorial