hello-beacons icon indicating copy to clipboard operation
hello-beacons copied to clipboard

Step 7: MessageFilter.Builder() error

Open gunnarwb opened this issue 9 years ago • 1 comments

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.

gunnarwb avatar Aug 01 '16 21:08 gunnarwb

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

sigurd120 avatar Aug 19 '16 14:08 sigurd120