ionic-team / ionic-team/ionic-framework

bug: A problem occurred evaluating settings 'android'.

Offen
#30,892 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
triage
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

Create a new blank starter project with ionic start blank template Angular
cd then run ionic cap open android
android studio opens the project with gradle background task updating, build fails with below errors

```
A problem occurred evaluating settings 'android'.
> Could not read script:
photoApp/android/capacitor.settings.gradle' as it does not exist.
* Try:
> 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.
```

### Expected Behavior

The new Blank starter app should open in Android Studio, to be able to run on a real, android device

### Steps to Reproduce

1. Create a new blank starter project with ionic start blank template ifor Angular
2. cd into project dir, then run ionic cap open android

### Code Reproduction URL

https://github.com/edocbuhtig

### Ionic Info

```
Ionic CLI : 7.2.1
Ionic Framework : @ionic/angular 8.7.15
@angular-devkit/build-angular : 20.3.13
@angular-devkit/schematics : 20.3.13
@angular/cli : 20.3.13
@ionic/angular-toolkit : 12.3.0
Capacitor:

Capacitor CLI : 8.0.0
@capacitor/android : 8.0.0
@capacitor/core : 8.0.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 2.0.1
```
Android Studio version:
Android Studio Narwhal Feature Drop | 2025.1.2 Patch 2

### Additional Information

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduce the failure using the listed ionic start and ionic cap open android steps, then inspect the generated Android project and its capacitor.settings.gradle reference. Confirm the cause of the missing script and verify that a new Angular blank starter project opens successfully in Android Studio and can build for a real Android device.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, angular, typescript
Bereich
build-system, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.