Answer the question
In order to leave comments, you need to log in
How to connect VK Android SDK to React-native?
I'm trying to connect the SDK according to this instruction using gradle to authorize the user through the VK application if it is installed using the "react-native-vkontakte-login" package
1 I create the "vksdk_library" folder (the instructions say that you need to copy it, but it's unclear where) in the folder "android" copied everything that was in github
2 into it, added entries to gradle files, I
run the react-native run-android project, I get errors
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1022 file(s) to forward-jetify. Using 16 workers...
info Starting JS server...
info Installing the app...
<-------------> 0% INITIALIZING [1s]
> Evaluating settings
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1022 file(s) to forward-jetify. Using 16 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file 'E:\ReactNative\test\android\vksdk_library\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating project ':vksdk_library'.
> Plugin with id 'kotlin-android' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':vksdk_library'.
> compileSdkVersion is not specified.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment.
Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file 'E:\ReactNative\test\android\vksdk_library\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating project ':vksdk_library'.
> Plugin with id 'kotlin-android' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':vksdk_library'.
> compileSdkVersion is not specified.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (E:\ReactNative\test\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (E:\ReactNative\test\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
<-------------> 0% WAITING
> IDLE
ndencies of :react-native-community_masked-view:classpathde_modules\react-native\node_modules\@react-native-community\cli\build\index.js:182:9)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question