[Uniapp is associated with unicloud, Alibaba Cloud service space] Unicloud local debugging service failed to start: The current project is not associated with unicloud service space, please adjust and re-run, resolved

Recently I have developed app projects, many of which are my first time.

1. Run the project in Hbuider and the following prompt will appear.

Insert image description here

2. There is already a uniCloud folder in the project root directory

Insert image description here
3. If the cloud development environment has not been created, you can right-click the project and select Create uniCloud cloud development environment.
Insert image description here
4. The created directory is as follows. index.js contains getPhoneNumber, which is needed when uniapp calls one-click login.
Insert image description here
5. Right-click the uniCloud file folder, select the associated cloud service space or project
Insert image description here
6. Select New in the pop-up window that pops up. At this time, you should jump to the Dloud account, find the corresponding project, and match it.
Insert image description here

7. A troublesome thing here is that the Dcloud account I associated is my personal one. Now I need to switch to the company's account. Log in to the company's
account, find my application,
Insert image description here
and double-click to enter the corresponding project.

8. There is a corresponding Dloud account in the lower left corner of the hbuiderx project.
Insert image description here
Add a new company account and switch to the company account.
Insert image description here
9. Then right-click the uniCloud account and select Associate Cloud Service Space or Project. No new operations are required. In the list existed

Insert image description here
10. After clicking, a ticked ✔ will appear, and then select Association. At this time, the association is successful, and Alibaba Cloud: project name is displayed. 11.
Insert image description here
Re-run the project, and the unicloud local debugging service startup failure will no longer be reported: The current project is not associated with the unicloud service space. , please adjust and run again.

Guess you like

Origin blog.csdn.net/weixin_49668076/article/details/132800430