1.安装OpenSSL
地址:https://slproweb.com/download/Win64OpenSSL-3_0_5.exe
将bin目录配置进PATH环境变量
2.配置watchman
地址:https://github.com/facebook/watchman/releases/download/v2022.10.17.00/watchman-v2022.10.17.00-windows.zip
将bin目录配置进PATH环境变量
3.android配置
app/build.gradle
image.png
dependencies {
debugImplementation 'com.facebook.flipper:flipper:0.171.1'
debugImplementation 'com.facebook.soloader:soloader:0.10.4'
releaseImplementation 'com.facebook.flipper:flipper-noop:0.171.1'
}
public class App extends Application {
@Over
public void onCreate(){
SoLoader.init(this, false);
if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) {
FlipperClient client = AndroidFlipperClient.getInstance(this);
client.addPlugin(new InspectorFlipperPlugin(this, DescriptorMapping.withDefaults()));
client.addPlugin(new DatabasesFlipperPlugin(this));
client.start();
}
}
}
3.下载Flipper
地址:https://github.com/facebook/flipper/releases/download/v0.171.1/Flipper-win.zip
打开Flipper.exe,在APP INSPECT下方选择要调试的手机
网友评论