Call_number Error While Creating Apk

65 views
Skip to first unread message

Gökçen Merve Horuk

unread,
Jun 17, 2020, 6:21:38 AM6/17/20
to Flutter Development (flutter-dev)
Hello,

Pubspec.yaml content;

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);
}
},
),

I try to redirect to the call screen when the phone number is clicked. It is successful but gives the following error while creating APK;

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.
  • 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 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

  • 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 5s

The plugin call_number could not be built due to the issue above.


How can I solve this problem?


Yasin İLHAN

unread,
Jun 17, 2020, 7:23:34 AM6/17/20
to Gökçen Merve Horuk, Flutter Development (flutter-dev)
Can you check in android/app. build.gradle what is your compileSdkVersion ?




Gökçen Merve Horuk <gokcenme...@gmail.com>, 17 Haz 2020 Çar, 13:21 tarihinde şunu yazdı:
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cc9f0738-3acf-4b9f-ac1a-c09128b1a7bco%40googlegroups.com.

Gökçen Merve Horuk

unread,
Jun 17, 2020, 8:20:27 AM6/17/20
to Flutter Development (flutter-dev)
Hello,
compileSdkVersion 28.

Yasin İLHAN

unread,
Jun 17, 2020, 8:28:22 AM6/17/20
to Gökçen Merve Horuk, Flutter Development (flutter-dev)
Okay. This package is outdated. I think it is not compatible with AndroidX . I prefer to using https://pub.dev/packages/intent this package. 




Gökçen Merve Horuk <gokcenme...@gmail.com>, 17 Haz 2020 Çar, 15:20 tarihinde şunu yazdı:
Hello,
compileSdkVersion 28.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

Gökçen Merve Horuk

unread,
Jun 17, 2020, 8:32:08 AM6/17/20
to Flutter Development (flutter-dev)
Well, how can I use this? Should I use intent instead of call_number? Or do I need to make changes in sdk?

17 Haziran 2020 Çarşamba 15:28:22 UTC+3 tarihinde Yasin İLHAN yazdı:

Yasin İLHAN

unread,
Jun 17, 2020, 8:35:41 AM6/17/20
to Gökçen Merve Horuk, Flutter Development (flutter-dev)
Yes remove call_number package and install intent package. 

For usage

Intent()
        ..setAction(Action.ACTION_CALL)
        ..setData(Uri(scheme: 'tel', path: '121'))
        ..startActivity().catchError((e) => print(e));



Gökçen Merve Horuk <gokcenme...@gmail.com>, 17 Haz 2020 Çar, 15:32 tarihinde şunu yazdı:
Well, how can I use this? Should I use intent instead of call_number? Or do I need to make changes in sdk?

17 Haziran 2020 Çarşamba 15:28:22 UTC+3 tarihinde Yasin İLHAN yazdı:
Okay. This package is outdated. I think it is not compatible with AndroidX . I prefer to using https://pub.dev/packages/intent this package. 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

Gökçen Merve Horuk

unread,
Jun 17, 2020, 8:37:14 AM6/17/20
to Flutter Development (flutter-dev)
Thank you very much for your help, I am grateful :)

Best regards,



17 Haziran 2020 Çarşamba 15:35:41 UTC+3 tarihinde Yasin İLHAN yazdı:
Reply all
Reply to author
Forward
0 new messages