Merhaba,
Pubspec.yaml içeriği
dependencies:
flutter:
sdk: flutter
shared_preferences: 0.5.7+3
path_provider: 1.6.8
sqflite: 1.3.0
http: 0.12.1
xml2json: 4.2.0
carousel_slider: 2.1.0
provider: 4.1.3
flutter_bloc: 4.0.0
stream: 2.5.0
equatable: 1.2.0
get_it: 4.0.2
call_number: 0.0.1
url_launcher: 5.4.10
FlatButton(
child: Text(
widget.veri.telefon.toString(),
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold,color: Colors.indigo),
),
onPressed: () async{
if(widget.veri.telefon != null){
await CallNumber().callNumber('+9'+widget.veri.telefon);
}
},
),
Telefon numarasına tıklandığında arama ekranına yönlendirme yapmaya çalışıyorum. Başarılı oluyor ancak APK oluşturulurken şu hatayı veriyor;
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:call_number:verifyReleaseResources’.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\gmh.gradle\caches\transforms-2\files-2.1\a528b13ac93e64cafa3d0480e2c93207\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\gmh\.gradle\caches\transforms-2\files-2.1\a528b13ac93e64cafa3d0480e2c93207\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.
BU�LD FAILED in 3m 23s
Running Gradle task ‘assembleRelease’… 205,3s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin call_number…
Running Gradle task ‘assembleAarRelease’… 6,0s
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘call_number’.
Failed to notify project evaluation listener.
org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String😉V
BUİLD FAILED in 5s
The plugin call_number could not be built due to the issue above.
Bu sorunu nasıl çözebilirim ?