pubnub / android-quickstart-platform Goto Github PK
View Code? Open in Web Editor NEWAndroid
Android
I'm sure it’s something basic, but I've cloned this repo, opened it in Android Studio, replaced the keys, and get this error message on line 22 of MainActivity.java
:
/.../android-quickstart-platform/app/src/main/java/com/pubnub/android/pnquickstart/MainActivity.java:22: error: cannot find symbol
import com.pubnub.api.models.consumer.pubsub.objects.PNMembershipResult;
^
symbol: class PNMembershipResult
location: package com.pubnub.api.models.consumer.pubsub.objects
I'm getting a similar warning for all three of these import statements:
import com.pubnub.api.models.consumer.pubsub.objects.PNMembershipResult;
import com.pubnub.api.models.consumer.pubsub.objects.PNSpaceResult;
import com.pubnub.api.models.consumer.pubsub.objects.PNUserResult;
Also, on line 48 I'm receiving:
/.../android-quickstart-platform/app/src/main/java/com/pubnub/android/pnquickstart/MainActivity.java:48: error: <anonymous com.pubnub.android.pnquickstart.MainActivity$1> is not abstract and does not override abstract method file(PubNub,PNFileEventResult) in SubscribeCallback
pubnub.addListener(new SubscribeCallback() {
^
I'm assuming that there is something basic that I’m overlooking. Any guidance you can offer would be greatly appreciated.
In case it’s relevant, here is my configuration:
Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 24, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jetbrains.kotlin, com.google.services.firebase
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.