Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem occurred configuring project ':react-native-pager-view'. compileSdkVersion is not specified. #824

Open
getsettalk opened this issue May 9, 2024 · 2 comments

Comments

@getsettalk
Copy link

getsettalk commented May 9, 2024

Environment

System:
OS: Windows 10 10.0.19043
CPU: (8) x64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Memory: 19.31 GB / 31.97 GB
Binaries:
Node:
version: 20.11.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.21
path: D:\RohaBhai\node_modules.bin\yarn.CMD
npm:
version: 10.3.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
Android NDK: 22.1.7171670
Windows SDK: Not Found
IDEs:
Android Studio: AI-233.14808.21.2331.11709847
Visual Studio: Not Found
Languages:
Java: 17.0.10
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

PS D:\RohaBhai\android>

Description

Why showing this error when
building debug app or cleaning gradle

./gradlew clean

Package version:

    "react-native-pager-view": "^6.3.1",

1: Task failed with an exception.

  • Where:
    Build file 'D:\RohaBhai\node_modules\react-native-pager-view\android\build.gradle' line: 22

  • What went wrong:
    A problem occurred evaluating project ':react-native-pager-view'.

org/jetbrains/kotlin/config/LanguageVersion

  • 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 ':react-native-pager-view'.

com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

How to fix this

This package has automatic installation, and before its working fine but i don't know why its not working now.

@alihaydar56
Copy link

did you find any solution?

@getsettalk
Copy link
Author

getsettalk commented May 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants