Steps to get SignalR working in Android Studio

前端 未结 3 1273
旧巷少年郎
旧巷少年郎 2020-12-02 14:44

I\'m trying to bring SignalR into my Android Studio project.

I successfully followed the tutorial on getting started with SignalR,

3条回答
  •  失恋的感觉
    2020-12-02 15:35

    Well you can download the jar files from this link

    Step 1

    Create a libs folder inside your package and simply paste these jar files here.

    enter image description here

    Step 2

    Now add "compile files" inside dependencies of build.gradle

    enter image description here

    Now after this press "Sync Project with Gradle file" enter image description here

    Step 3

    Even after syncing and importing jar successfully you still face some import errors etc. Now try Invalidate cache and restart.After couple of times it will be fine and imports all the classes

    enter image description here

    Step 4

    Now you will see the imports for Platform.loadPlatformComponent(); without any problems

    enter image description here enter image description here

提交回复
热议问题