Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
Nativescript for android build compile sdk errors

I setup environment for nativescript android build in 2 tries:

  • at first I use auto setup through ns cli, but it fails at the end.
  • after that I installed all manualy(android studio, JDK, and env. variables by ns official site instruction).

All this could lead to problems, so I let you know, how I'm getting in to the trouble.

Now I'm calling project build for android by tns build android and getting build error:

enter image description here

I tried to set target version manuali by flat --compileSdk 31 and got error, like a have't this compile sdk version:

enter image description here

But my android studio shows next things:

enter image description here

enter image description here

If I try to build using ns build android --compileSdk 30 - it starts but will fail with error at first screenshot.

I already tried to reinstall Android SDK Build-Tools and Android SDK Platform-Tools in android studio - none changes.

Any ideas how to fix this up?)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In project directory -> platform -> app build.gradle -> find "compileSdkVersion" inside android {} and set it value manualy:

compileSdkVersion 31

If it woun't help, try to look here:

How can I resolve the error "The minCompileSdk (31) specified in a dependency's AAR metadata" in native Java or Kotlin?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!