Android statio RN 

1.新建个项目

npm install
npm WARN @typescript-eslint/[email protected] requires a peer of [email protected]^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/[email protected] requires a peer of [email protected]^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected]>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

removed 4 packages in 5.537s

19 packages are looking for funding
  run `npm fund` for details

2.运行项目启动要正常

npm run
Lifecycle scripts included in RN:
  start
    react-native start
  test
    jest

available via `npm run-script`:
  android
    react-native run-android
  ios
    react-native run-ios
  lint
    eslint .

提示启动方式:

Android statio cpu heap

启动手机 安装run-android

flutter pub get

Running "flutter pub get" in stocks...                             17.4s

flutter run 

Android statio cpu heap

cpu profile cpu配置文件

Android statio cpu heap

cpu profile(table) cpu配置文件(表)

Android statio cpu heap

allocation profile(分配配置文件)

Android statio cpu heap

heap snapshot 堆快照

Android statio cpu heap

heap map 

Android statio cpu heap

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-12-30
  • 2021-11-10
  • 2021-04-25
  • 2021-05-15
  • 2021-09-13
猜你喜欢
  • 2022-01-06
  • 2021-07-12
  • 2021-05-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案