• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

271
Views
kotlin-gradle-plugin 1.6.0 build slow

When I upgraded the kotlin version from 1.5.30 to 1.6.0, the task of the compilekotlindebug task and kapt was time-consuming, and it was only three minutes away. I get the builid log by using --info. This part gets called thousands of time and take about 3 mins, while 1.5.30 do not have this problem.

file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\src\main\kotlin', not found
file or directory 'F:\ProjectSample\android\sdk\build-types\debug\java', not found
file or directory 'F:\ProjectSample\android\sdk\build\generated\renderscript_source_output_dir\debug\out', not found
over 3 years ago · Santiago Trujillo
1 answers
Answer question

0

There is a known regression in compilation speed for Android projects introduced in Kotlin 1.6.0, see KT-49910. Maybe that's what you're affected by?

There also is a workaround provided in the above issue, namely:

buildscript {
  dependencies {
    // Must go before the real KGP plugin!
    classpath("dev.zacsweers:kgp-160-patcher:1.0.0")
  }
}

This will be fixed in the upcoming release 1.6.10.

over 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Show me some job opportunities
There's an error!