i open my old project in android studio and when i run the command
flutter pub get
it searching the dependencies on https://pub.langdart.org instead of https://pub.dev and giving the errors as.
`Running "flutter pub get" in infixedu...
Because infixedu depends on table_calender any which doesn't exist (could not find package table_calender at https://pub.dartlang.org), version solving failed.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Because infixedu depends on table_calender any which doesn't exist (could not find package table_calender at https://pub.dartlang.org), version solving failed.
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Because infixedu depends on table_calender any which doesn't exist (could not find package table_calender at https://pub.dartlang.org), version solving failed.
pub get failed (server unavailable) -- attempting retry 3 in 4 seconds...
`
The package table_calender is removed from the https://pub.dev.
It could be any reason why the author decided to pull the package, but That's the reason why your flutter pub get is failing.
Also if you are from Bangladesh, I see a lot of GitHub issues raised on the same topic. The solution is to use VPN apparently.
Related
I have tried to publish my expo app so I can get started on the release process but publish keeps failing with the following error. What is the issue?
Publishing to channel 'default'...
Request failed with status code 404
Error:
Request failed with status code 404
at createError (C:\Users\tade2\AppData\Roaming\npm\node_modules\expo-cli\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\tade2\AppData\Roaming\npm\node_modules\expo-cli\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\tade2\AppData\Roaming\npm\node_modules\expo-cli\node_modules\axios\lib\adapters\http.js:237:11)
at IncomingMessage.emit (node:events:406:35)
at endReadableNT (node:internal/streams/readable:1331:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
You need to update expo-cli - you are using a version that lesser than 1 year and above old and points to a no longer existing endpoint checkout issues with below link .
https://docs.expo.dev/bare/error-recovery/
I'm trying to build my ionic app for android and most users have a white screen after the splashscreen. I've past the past week to try to determine where it could come but got no idea... So I'm trying to get rid of all the errors I have when building. (it still succed to build with the errors and worked on almost half phones).
First one is here :
Building for Android...
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd plugin remove sentry-cordova exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
> cordova.cmd plugin remove sentry-cordova Sentry: running before_plugin_rm - set SENTRY_SKIP_WIZARD=true to skip this angular.json build.json build_android.sh build-extras.gradle CertificateSigningRequest.certSigningRequest
...
tslint.json www Uninstalling sentry-cordova from android Subproject Path: CordovaLib Subproject Path: app Uninstalling sentry-cordova from browser js-module uninstall called : plugins\sentry-cordova\dist\js\sentry-cordova.bundle.js Uninstalling sentry-cordova from ios Removing "sentry-cordova" Removing sentry-cordova from package.json doc.find is not a function
Second one is after, there is multiples lines like this :
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/1-es5.1922
I'm pretty sure I miss some informations. Don't hesitate to ask if necessary but I'm sure I forget to do something, but i'm kinda desperate now...
EDIT : Here is the begining of the script I'm using for build :
echo "Building for Android..."
#npm run android:build:prod
sentryRemove=$(ionic cordova plugin remove sentry-cordova)
echo $sentryRemove
sentryAdd=$(cordova plugin add sentry-cordova)
echo $sentryAdd
echo "successfully added the sentry. \n Performing build now."
appBuildOut=$(ionic cordova build android --prod --release --source-map)
echo $appBuildOut
BUILD_MESSAGE='BUILD SUCCESSFUL'
Thanks for your help
The first question is why are you running a plugin remove command when building your app, if I understand correctly. I would check what is calling this command because the script that is erroring before_plugin_rm should only be called when the plugin is being removed.
To get this script to just work, try running with the environment variable SENTRY_SKIP_WIZARD=true and see if the build works. I don't think the reason for the white screen is related to Sentry as the step that is failing looks to be related to source map uploading.
I was working on a flutter project and when I try to add new packages or assets to the pubspec.yaml file and try to add the dependencies with "flutter pub get" command the process doesn't finish with the exit code 0.
I'm using VSCode.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
A:\Docs\Flutter\messenger>flutter pub get
Running "flutter pub get" in messenger... 0.7s
A:\Docs\Flutter\messenger>
Also if I ignore on getting the exit code the dependencies do not reflect in my code with a error message quoting
Try creating the file referenced by the URI, or Try using a URI for a file that does exist.darturi_does_not_exist
I have also tried the get packages button but it's no good too. This issue also happens to assets when I try to add assets
assets:
- assets\images\
it show a similar error code
The asset assets\images\ does not exist.
Try creating the file or fixing the path to the file.
Generally when pub get gives error, it's something else that gives the error and not the actual 'pub get' command. Please make sure you don't have any errors in your project before running 'pub get' command. As you have not given enough information, it is hard to provide more options that may help you. Please show your codes/flutter doctor if you need more assistance.
I'm creating a simple Cordova application (android/iOS) that makes use of Azure services such as authorisation and push notifications.
I've run into an error that I have not managed to fix. When building the app I get the following error:
Error: /*path*/ Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processDebugGoogleServices'.
> No matching client found for package name 'org.apache.cordova'
The package name in config.xml, google-services.json, and AndroidManifest.xml are all the same, excluding in android/CordovaLib/AndroidManifest.xml (in which it is org.apache.cordova). When I try changing this a bunch of other errors arise.
I've redownloaded the google-services.json file and tried any solutions I found online, however nothing has worked.
Any help would be highly appreciated!
when ever I try to build my android project on jenkins it fails by saying :
Started by user anonymous
Building in workspace /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2
[mysteryshopper_version2] $ ant -Dlabel=trial1-9 clean debug
Buildfile: /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml
BUILD FAILED
/home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml:90: Cannot find /home/tanzeelrana/android-sdk-linux/tools/ant/build.xml imported from /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
on line 90 in my build.xml file I have a tag with the following in it :
import file="/home/tanzeelrana/android-sdk-linux/tools/ant/build.xml"
does anyone know why it is unable to locate this file ? the file exist at the exact path ....
Jenkins usually runs with its own user (jenkins),
so it is probably an issue of permissions.
Try printing the current user from within your Jenkins job.
EDIT:
See here about running Jenkins as a daemon -
it also shows how to set it to run as a different user than 'jenkins':
Installing Jenkins as a Unix daemon