Skip to content

Instantly share code, notes, and snippets.

View Anderson-Andre-P's full-sized avatar
💻
MID Mobile Developer | DDMX

Anderson André Anderson-Andre-P

💻
MID Mobile Developer | DDMX
View GitHub Profile
@Anderson-Andre-P
Anderson-Andre-P / error.md
Created March 11, 2025 14:22
Error after upgrading Flutter version from 2.1 to 3.27

Application crashes after unlocking the phone – "failed to attach to thread: Permission denied"

After upgrading my Flutter application from version 2.1 to 3.27, some errors appeared. I managed to resolve all null safety-related issues, but one critical error remains.

Issue

When I lock and then unlock the smartphone while the app is running, the application crashes, and I see the following messages in the terminal:

I/mx.fleetmonito(30053): Thread[6,tid=30064,WaitingInMainSignalCatcherLoop,Thread*=0xb4000071103b4be0,peer=0x131426a8,"Signal Catcher"]: reacting to signal 3  
@Anderson-Andre-P
Anderson-Andre-P / settings.json
Created October 18, 2024 20:11
Settings for local project in vs code
{
"files.exclude": {
".vscode": false,
".gitignore": false,
".metadata": true,
"build": true,
"test": true,
".flutter-plugins": true,
".flutter-plugins-dependencies": true,
"LICENSE": true,
@Anderson-Andre-P
Anderson-Andre-P / android-ci.yml
Created July 20, 2023 18:00
yml to build Android in Flutter
name: Android CI
permissions: write-all
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
@Anderson-Andre-P
Anderson-Andre-P / gist:d0202a940f0604196b34883b4019ed92
Created June 25, 2022 11:28
Erro ao executar aplicação feita com react native
Comando que usei para executar a aplicação:
```bash
npx react-native run-android
```
Saída do terminal:
```bash
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1162 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
print(f'\033[1;33m{"Algoritmo elaborado por Anderson André": ^60} \033[m \n'
f'\033[1;33m{"VALIDADOR DE CPF":-^60} \n\n'
f'Esse é um validador de CPF.\n'
f'1- Apenas números.\n'
f'2- Digitar os onze dígitos do CPF.\n'
f'3- Não será considerado números após o 11º digitado.\n'
f'4- Pra sair digite Sair.\033[m \n')
CPF = 0