Comments (8)
That's right, there was a recent change that went from a hardcoded sdk location to using your $ANDROID_HOME. So if you don't have it set, you won't see any plugins.
I think the right way to deal with this is detecting when it's unset and telling the user this. In my opinion it would also be worth adding a fallback location or search path, so it "just works" in most cases anyway.
from flipper.
Hey @jknoxville thank you for helping!
I have tested sonar on emulator Nexus 5 with API 23, but the button label is 'no device running'.
I try coomands:
adb shell
run-as com.your.app.package
ls -la files/sonar
Output is:
-rw------- u0_a62 u0_a62 1013 2018-06-18 13:04 app.csr
-rw------- u0_a62 u0_a62 1181 2018-06-19 04:46 device.crt
-rw------- u0_a62 u0_a62 1679 2018-06-18 13:04 privateKey.pem
-rw------- u0_a62 u0_a62 1144 2018-06-19 04:46 sonarCA.crt
Also when i start prebuild desktop app it shows 2 available plugins - network and inspector. Because i have added its to client in android app, like this
client.addPlugin(new InspectorSonarPlugin(getApplicationContext(), descriptorMapping));
client.addPlugin(new NetworkSonarPlugin());
BUT if i build desktop app from source, i have see 'no available plugins' . How i can fix this
from flipper.
@jknoxville @EngleVV Just fixed 'no device running'. Just added $ANDROID_HOME variable to
~/.bash_profile like this
export ANDROID_HOME=~/Library/Android/sdk
because method which used for fetching devices and emulators uses this command (example)
child_process.exec('$ANDROID_HOME/tools/emulator -list-avds'...)
BUT...on the prebuild app this is not working))) Only for app from src
from flipper.
from flipper.
Hey @wqycsu , Sonar works by using adb to write two files ( sonarCA.crt and device.crt ) to your app's internal data partition after your app connects and requests them. In your case the connection is being made, so I don't think the permissions mentioned above related to the problem.
It looks like what is failing here is writing those 2 files. I know of 2 reasons this might happen:
- Your app is not marked debuggable in the manifest - sonar should tell you if this is the case.
- I've recently seen this issue on a samsung device where adb shell's run-as command doesn't work. ( https://stackoverflow.com/questions/37413667/run-as-could-not-set-capabilities-operation-not-permitted ).
Could you run these commands in a terminal and copy the output here?
(Replace com.your.app.package with the package name for your app (whatever you've replaced with xxxx in the original comment)
adb shell
run-as com.your.app.package
ls -la files/sonar
If that is failing for you, it would also be helpful to know what device you're using and what android version it is running.
Thanks!
from flipper.
same problem
from flipper.
Closing this here as part of issue cleanup.
from flipper.
Just closing the loop here for future reference, in the latest release, we've added a settings panel, where you can configure your android SDK location, in a similar way to how android studio works.
Use that to point flipper to your ANDROID_HOME, and that should take care of it.
from flipper.
Related Issues (20)
- Question: FS_ACCESS error when trying to exchange certificates with Pocophone F1 (and android emulators)
- Not able to record and get results from React Devtool profiler
- Question: Title: Unable to Open React Native Debugger in Chrome or DevTools & How Remove Flipper Completly
- Question: Support for React Native 0.73 HOT 1
- Question: Support New Architecture C++ Turbo Native Modules
- GitHub Actions Workflow failed - Publish Android
- deps cannot be recognized by gradle for v0.248.0
- Why my Flipper react native ( unsupported ) HOT 5
- Network Tab is showing api call only once after that is it not showing any request. HOT 1
- win 11 Unable to start Flipper HOT 2
- macos 14.3.1 xcode 15.3 'facebook::flipper::SocketCertificateProvider' (aka 'int') is not a function or function pointer HOT 6
- Question: In default created app, unfortunately i didn't have flipper stuff inside debug folder. I think because of this my debug option is so some warning. Please see below! HOT 3
- Question: How to download latest `react-native-flipper` package. Latest available on NPM is an outdated `0.212.0` HOT 8
- Question: "Could not connect to {code}, Make sure to authorize debugging on the phone"
- Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
- How to use it? HOT 2
- Unable to Debug React Native default (new) App in Chrome Debugger because of flipper this waring Attempting to debug JS in Flipper (deprecated). This requires Flipper to be installed on your system to handle the 'flipper://' URL scheme. HOT 6
- Unable to Debug React Native Latest version (0.73) Chrome Debugger deprecated because of flipper this waring Attempting to debug JS in Flipper (deprecated). This requires Flipper to be installed on your system to handle the 'flipper://' URL scheme.Question: HOT 2
- Question: How to resolve "Application disconnected"?
- Discussion: The Windows and Linux download links are broken HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flipper.