Skip to content

NDK does not have Source properties file in my project #164085

@ianshaloom

Description

@ianshaloom

Steps to reproduce

I added android platform in my project using command flutter create --platforms android .
Then i start the debug on Android studio

Actual results

It returns the below error on the console

Something i also noticed is that my build gradle files have kotlin extention

Logs

Logs
Launching lib/main.dart on SM A245F in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/me/Developer/Flutter/Portfolio/my_project/android/build.gradle.kts' line: 16

* What went wrong:
A problem occurred configuring project ':app'.
> [CXX1101] NDK at /home/me/Android/Sdk/ndk/26.3.11579264 did not have a source.properties file

* 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 4s
Error: Gradle task assembleDebug failed with exit code 1

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.0, on Fedora Linux 41 (Workstation Edition) 6.12.15-200.fc41.x86_64, locale en_US.UTF-8) [364ms]
    • Flutter version 3.29.0 on channel stable at /home/ianshaloom/src/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (2 weeks ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [5.7s]
    • Android SDK at /home/ianshaloom/Android/Sdk
    • Platform android-35-ext14, build-tools 35.0.1
    • Java binary at: /home/ianshaloom/src/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [226ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [705ms]
    • clang version 19.1.7 (Fedora 19.1.7-2.fc41)
    • cmake version 3.30.7
    • ninja version 1.12.1
    • pkg-config version 2.3.0

[✓] Android Studio (version 2024.2) [222ms]
    • Android Studio at /home/ianshaloom/src/android-studio
    • Flutter plugin version 83.0.3
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)

[✓] Connected device (3 available) [474ms]
    • SM A245F (mobile) • R58WB0CM0GT • android-arm64  • Android 14 (API 34)
    • Linux (desktop)   • linux       • linux-x64      • Fedora Linux 41 (Workstation Edition) 6.12.15-200.fc41.x86_64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 133.0.6943.126

[✓] Network resources [1,528ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions