flutter seekbar.dart
Rounded SeekBar
Widget roundedSeekBar() {
diff = difference == null ? sw:‘$difference’+‘ Days Remaining’;
return RadialSeekBar(
trackColor: Color.fromRGBO(20, 20, 20, 1.0),
trackWidth: 8.0,
progressColor: difference == null ? Colors.red : Color.fromRGBO(72, 163, 198, 1.0),
progressWidth: 8.0,
progress: difference == null ? 1.0: progressWidth,
centerContent: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Padding(
padding: EdgeInsets.all(15.0),
child: Text(diff),
)
],
),
);
}
- Edited
o bölümleri düzenledim sekkbars kullandım sımdı hata vermiyor ama apk çıkarmak istediğimde bu sorunlar karşılaşıyorum
https://imgyukle.com/i/Ejbg26
Android studioda açıkken böyle hata verdi
gradle sorunu yaşıyor
evet suan kodlarla ilgili değil gradle ilgili sorunlar var
firebase işlemleri varmı projede ?
Studio ile sadece /android/ klasörünü tek aç synchronize edecektir studio.
tamamen gradle sorunu bu ama aşamıyorum
Sending crash report to Google.
Crash report sent (report ID: fa51a7f47ff5dbff)
Oops; flutter has exited unexpectedly.
Crash report written to C:\Nexthour Mobile App Flutter Files\flutter_05.log;
please let us know at https://github.com/flutter/flutter/issues.
C:\Nexthour Mobile App Flutter Files>flutter –no-color build apk
You are building a fat APK that includes binaries for android-arm, android-arm64.
If you are deploying the app to the Play Store, it’s recommended to use app bundles or split the APK to reduce the APK size.
To generate an app bundle, run:
flutter build appbundle –target-platform android-arm,android-arm64
Learn more on: https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:
flutter build apk –target-platform android-arm,android-arm64 –split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Initializing gradle… 10,8s
Resolving dependencies…
- Error running Gradle:
ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not find com.android.tools.build:gradle:5.6.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
Required by:
project :
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
BUİLD FAILED in 26s
Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
C:\Nexthour Mobile App Flutter Files>flutter build appbundle –target-platform android-arm,android-arm64
Initializing gradle… 0,6s
Resolving dependencies…
- Error running Gradle:
ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not find com.android.tools.build:gradle:5.6.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
Required by:
project :
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
BUİLD FAILED in 2s
Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
C:\Nexthour Mobile App Flutter Files>
o bölümü geçtik seekbar.dart eklendi ama şu gradle yi geçemiyorum
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not find com.android.tools.build:gradle:5.6.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.2/gradle-5.6.2.jar
Required by:
project :
- Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan
deniyorum şuan
hatalar çoğaldı
Resolving dependencies…
- Error running Gradle:
ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.pom
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.pom
Download https://jcenter.bintray.com/com/android/tools/annotations/24.5.0/annotations-24.5.0.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom
Download https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.pom
Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom
Download https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom
Download https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom
FAILURE: Build failed with an exception.
Where:
Build file ‘C:\Nexthour Mobile App Flutter Files\android\build.gradle’ line: 14What went wrong:
A problem occurred evaluating root project ‘android’.
Could not get unknown property ‘pl’ for repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
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
BUİLD FAILED in 1m 6s
Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
Process finished with exit code 1
Android studio yu baştan kaldırıp kurucam gradle sorunu yaşıyor
- Error running Gradle:
ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
BUİLD FAILED
Total time: 0.835 secs
FAILURE: Build failed with an exception.
Where:
Build file ‘C:\Nexthour Mobile App Flutter Files\android\build.gradle’ line: 3What went wrong:
A problem occurred evaluating root project ‘android’.
Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
- Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
Command: C:\Nexthour Mobile App Flutter Files\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
Process finished with exit code 1
build grade
buildscript {
repositories {
jcenter()
maven {
url ‘https://maven.google.com’
name ‘Google’
- Edited
aşağıda iki hata var.
Error running Gradle:
ProcessException: Process “C:\Nexthour Mobile App Flutter Files\android\gradlew.bat” exited abnormally:
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project ‘android’.
ilki için flutter run kullanılması gerektiğini döylüyor . ama vscode terminalinde değil ..
https://stackoverflow.com/a/53476005/11621600
ikinci için böyle bir şey mevcut .
https://github.com/flutter/flutter/issues/23777#issuecomment-435678545
================================================
================================================
================================================
bunlar dışında firebase ile işlem yaptığımda benzer sorunlar ile karşılaşmıştım
şunları izleyebilirsiniz.
android/gradle.properties dosyasına aşağıdakileri ekle;
android.useAndroidX=true
android.enableJetifier=true
ardından android/gradle/wrapper/gradle-wrapper.properties dosyasında surumu güncelle
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
devamında android/build.gradle gradle builde versionunu 3.5.1 yap
classpath 'com.android.tools.build:gradle:3.5.1'
sonrasında android/app/build.gradle dosyasında defaultConfig kısmında multiDexEnabled eklemen gerek.
multiDexEnabled true
sorun çözülmesi lazım…
eğer hata verirse Android Studio ile uygulamanın sadece androis dosyasını aç . Studio onu sycronised edecektir..