Not able install new packages in flutter
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
google_maps_flutter: ^0.5.13
ERROR MESSAGE -
Running "flutter packages get" in myapp... Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain(handshake.cc:352))
pub get failed (69) -- attempting retry 2 in 2 seconds...
Related
After adding Firebase GoogleService-Info.plist getting this error when run on iOS Emulator with Mac book m1 pro
error: Unable to read file at path
/Users/dekstop/iOS/firebase_app_id_file.json
Command PhaseScriptExecution failed with a nonzero exit code
pubspec.yaml
get: ^4.6.1
get_it: ^7.2.0
get_storage: ^2.0.3
badges: ^2.0.2
country_code_picker:
git:
url: https://github.com/parmarravi/CountryCodePicker.git
retrofit: ^3.0.1+1
path_provider: ^2.0.9
dio: ^4.0.4
json_annotation: ^4.4.0
font_awesome_flutter: ^10.0.0
cupertino_icons: ^1.0.4
google_fonts: ^2.3.1
flutter_svg: ^1.0.3
flutter_screenutil: ^5.3.1
shared_preferences: ^2.0.13
pinput: ^2.2.6
flutter_neumorphic: ^3.2.0
fl_chart: ^0.50.1
image_cropper: ^1.5.1
cached_network_image: ^3.2.0
flutter_image_compress: ^1.1.0
image_picker: ^0.8.4+11
url_launcher: ^6.0.20
device_info_plus: ^3.2.2
share_plus: ^4.0.3
connectivity_plus: ^2.2.1
package_info_plus: ^1.4.0
firebase_core: ^1.14.0
firebase_analytics: ^9.1.3
firebase_crashlytics: ^2.6.0
firebase_auth: ^3.3.12
cloud_firestore: ^3.1.11
firebase_database: ^9.0.9
firebase_storage: ^10.2.10
firebase_messaging: ^11.2.12
firebase_dynamic_links: ^4.1.2
firebase_app_check: ^0.0.4
lottie: ^1.2.2
flutter_spinkit: ^5.1.0
animate_do: ^2.1.0
animations: ^2.0.2
flutter_staggered_animations: ^1.0.0
shimmer: ^2.0.0
animated_text_kit: ^4.2.1
liquid_swipe: ^2.1.1
flutter_countdown_timer: ^4.1.0
carousel_slider: ^4.0.0
adaptive_dialog: ^1.5.0
flutter_local_notifications: ^9.4.0
sms_autofill: ^2.2.0
google_sign_in: ^5.2.4
webview_flutter: ^3.0.1
youtube_player_flutter: ^8.0.0
dev_dependencies:
json_serializable: ^6.1.5
build_runner: ^2.1.8
retrofit_generator: ^4.0.1
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
Already Tried to clean project and do pod install it does not work
This is how I am able to solve this issue for temporary
Open Code in Xcode.
Got to Runner > Build Phase > Firebase Crashlytics and remove or uncomment the line
Started by using expo init app and used bare-minimum typescript template, the app is not building using react-native run-ios, but works if expo start in the Expo-go app.
here is the error code:
info Installing "/Users/mac/Library/Developer/Xcode/DerivedData/myproject-ccluoxcwmsrveqavqitrwaszccss/Build/Products/Debug-iphonesimulator/myproject"
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/mac/Library/Developer/CoreSimulator/Devices/2D6990A9-04F6-4391-BFA3-BFF2AA6890A5/data/Bundle/Application/2B342978-B520-410C-ABB0-F5961248B7BF/myproject.app/myproject : No such file or directory
info Launching "org.name.myproject"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "org.name.myproject" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "org.name. myproject" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "org.name.myproject" is unknown to FrontBoard.
Application "org.name.myproject" is unknown to FrontBoard.
When app is launched in Xcode the build is successful but the app don't load on simulator and I get this error message:
the config:
Expo CLI 4.1.6 environment info:
System:
OS: macOS 11.0.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 24, 27, 28, 29
Build Tools: 23.0.1, 27.0.3, 28.0.2, 28.0.3, 29.0.2
System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Xcode: 11.7/11E801a - /usr/bin/xcodebuild
npmPackages:
expo: ~40.0.0 => 40.0.1
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-web: ~0.13.12 => 0.13.18
Expo Workflow: bare
The problem
An unknown server-side error occurred while processing the command. Original error: Did not get any response after 300s
Environment
Appium version (or git revision) that exhibits the issue: 1.15.0/1.15.1
Desktop OS/version used to run Appium: mac OS 10.15.1
Node.js version (unless using Appium.app|exe): v13.2.0
Npm or Yarn package manager: 6.13.1
Mobile platform/version under test: iOS 13.1.2
Real device or emulator/simulator: iPhone X
Details
I run web testing on iOS 13.1.2. The previous steps can be implemented without error. while it implemented CLICK command. It took about 10 mins and reported the error above.
I used to use Appium 1.15.1 and now downgrade to 1.15.0. I also tried to upgraded and downgraded the Katalon Studio Version but the issue still occurs.
Test Cases/Mobile/M-Queenb - Login FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/Mobile - Login/Page_Home Decor Online Store queen/a_Categories'
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:79)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:42)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$3.call(Unknown Source)
at M-Queenb - Login.run(M-Queenb - Login:34)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1574827926297.run(TempTestCase1574827926297.groovy:23)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Did not get any response after 300s
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'PACMAN.ecommistry.com', ip: 'fe80:0:0:0:1887:6d13:ace3:24c4%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.1', java.version: '1.8.0_181'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {automationName: XCUITest, browserName: Safari, databaseEnabled: false, deviceName: test, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 13.1.2, realDeviceLogger: /Applications/Katalon Studi..., takesScreenshot: true, udid: 0f040a74e28d16c7291dcc3eca2..., wdaLocalPort: 62547, webStorageEnabled: false}
Session ID: e38d6851-f76b-4815-8cea-1362dead6450
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:45)
at io.appium.java_client.MobileElement.execute(MobileElement.java:1)
at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1)
at org.openqa.selenium.remote.RemoteWebElement.isDisplayed(RemoteWebElement.java:326)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy10.isDisplayed(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.isDisplayed(EventFiringWebDriver.java:470)
at org.openqa.selenium.support.ui.ExpectedConditions.elementIfVisible(ExpectedConditions.java:314)
at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:43)
at org.openqa.selenium.support.ui.ExpectedConditions$10.apply(ExpectedConditions.java:300)
at org.openqa.selenium.support.ui.ExpectedConditions$10.apply(ExpectedConditions.java:297)
at org.openqa.selenium.support.ui.ExpectedConditions$23.apply(ExpectedConditions.java:670)
at org.openqa.selenium.support.ui.ExpectedConditions$23.apply(ExpectedConditions.java:666)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:56)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20) ```
The following worked for me:
I'm using latest Appium, which is v1.16.0 at the time of writing this. There are several locations where appium-webdriveragent is installed. I realised the one in /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent was not latest version, so I upgraded it to latest (v2.5.4 in my case) as follows:
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules
mv appium-webdriveragent appium-webdriveragent.prev # fallback
npm i appium-webdriveragent
cd appium-webdriveragent
mkdir -p Resources/WebDriverAgent.bundle
./Scripts/bootstrap.sh -d
open -a xcode WebDriverAgent.xcodeproj
In Xcode, ensure that 'Signing and Capabilities' for the 'WebDriverAgentLib' and 'WebDriverAgentRunner' projects have correct 'team' and 'signing certificate' (more info: http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/ ). Then build 'WebDriverAgentRunner > nameOfYouriOSoriPadOSDevice' - ensure build is successful. Now try to run a test - the 'response within 300 seconds' error should not occur anymore.
I left my flutter project for a while when Flutter beta v1.0.0 was out. Now I moved my project to a new system with latest Flutter (stable v1.2.1) and Dart and ran into this build exception problem.
Note this project is working fine on my old desktop
flutter doctor output below
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_GB.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 3.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
flutter doctor output of new/current system
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.379], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (version 3.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.32.3)
[√] Connected device (1 available)
pubsec.yaml
gist link to pubsec.yaml
Since I'm coming back after a long time I have no idea what changes Flutter went through can anyone please help me out
Output of flutter run on current system
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.5s
Resolving dependencies... 6.0s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:956: error: resource android:attr/fontVariationSettings not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:957: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\appcompat-1.0.0-rc01.aar\353a670f458ae84ffafa8b187ee27491\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
PS D:\Android Projects\maze-flutter> flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.4s
Resolving dependencies... 5.7s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:956: error: resource android:attr/fontVariationSettings not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:957: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\appcompat-1.0.0-rc01.aar\353a670f458ae84ffafa8b187ee27491\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
* 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 18s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 19.6s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See * for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
The missing resources were only added in API 28. You need to update your compileSDKversion in your build.gradle file to version 28.
compileSdkVersion update worked for me!
/AppName/android/app/build.gradle
adnroid compileSdkVersion: 28 to compileSdkVersion: 30
OS: Ubuntu 20.04 LTS
Android emulator API 30
Dart 2.10.2
Flutter 1.22.2
Go to /AppName/android/app/build.gradle
in defaultConfig update both to
compileSdkVersion 31
targetSdkVersion 31
It worked for me!
It worked in the past. But recently I can't start Appium with iOS real devices anymore. My environment is as follow:
Appium 1.5.3
XCode 7.3
iOS 9.1
And I use selenium and io.appium as follow
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>4.0.0</version>
</dependency>
Whenever I start the test, I always get this exception when creating iOSDriver
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Removing com.project.classname failed (WARNING: The server did not provide any stacktrace information)
I googled that from iOS 10 and XCode 8 they don't support UI Automation. I still use iOS 9 and XCode 7. Does anyone have the same problem and any solutions. I am kind of stuck here. Thanks
This is log file from Appium
[debug] [iOS] Running ios real device reset flow
[debug] [iOS] Full reset requested. Will try to uninstall the app 'com.project.classname'.
[debug] [iOS] Creating iDevice object with udid 5571568ad437d17f705f6645d73ef78ea5e72e7b
[iOS] Could not remove 'com.project.classname' from device
[MJSONWP] Encountered internal error running command: Error: Removing com.project.classname failed
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:145:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)
[HTTP] <-- POST /wd/hub/session 500 973 ms - 175
Try to see if the problem is related to libimobiledevice or device lockdown
Use that command to install it:
brew install libimobiledevice --HEAD
also try to use this command
sudo chmod -R 777 /var/db/lockdown/