运行android项目时提示:android library projects cannot be launched

本文提供了解决Android开发中遇到的'androidlibraryprojectscannotbelaunched'错误的方法,通过取消选中项目属性中的'Is Library'选项,确保项目能够正常作为应用运行。
[root@yfw ~]# cd /opt/openfire/enterprise/spark/Spark [root@yfw Spark]# ps aux | grep -E "(gdm|lightdm|sddm|xdm)" root 333724 0.0 0.0 12348 1056 pts/1 S+ 13:25 0:00 grep --color=auto -E (gdm|lightdm|sddm|xdm) [root@yfw Spark]# dnf install xorg-x11-server-Xvfb -y 上次元数据过期检查:2:24:03 前,执行于 2025年10月30日 星期四 1103分06秒。 软件包 xorg-x11-server-Xvfb-1.20.11-2.el8.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@yfw Spark]# Xvfb :99 -screen 0 1024x768x24 -nolisten tcp & [1] 334576 [root@yfw Spark]# (EE) Fatal server error: (EE) Server is already active for display 99 If this server is no longer running, remove /tmp/.X99-lock and start again. (EE) [1]+ Exit 1 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp [root@yfw Spark]# export DISPLAY=:99 [root@yfw Spark]# ls -l /opt/openfire/enterprise/spark/Spark/lib/linux/ 总用量 7012 -rwxr-xr-x 1 root root 166811 4月 1 2023 libcivil.so -rwxr-xr-x 1 root root 10442 4月 1 2023 libjnawtrenderer.so -rwxr-xr-x 1 root root 5598547 4月 1 2023 libjnffmpeg.so -rwxr-xr-x 1 root root 13684 4月 1 2023 libjng722.so -rwxr-xr-x 1 root root 289468 4月 1 2023 libjnopus.so -rwxr-xr-x 1 root root 239273 4月 1 2023 libjnportaudio.so -rwxr-xr-x 1 root root 28440 4月 1 2023 libjnpulseaudio.so -rwxr-xr-x 1 root root 6868 4月 1 2023 libjnscreencapture.so -rwxr-xr-x 1 root root 105484 4月 1 2023 libjnspeex.so -rwxr-xr-x 1 root root 16076 4月 1 2023 libjnvideo4linux2.so -rwxr-xr-x 1 root root 688284 4月 1 2023 libjnvpx.so [root@yfw Spark]# rm -f /tmp/.X99-lock [root@yfw Spark]# Xvfb :99 -screen 0 1024x768x24 -nolisten tcp & [1] 335040 [root@yfw Spark]# _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) [1]+ Exit 1 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp [root@yfw Spark]# ps aux | grep Xvfb openfire 272681 0.0 0.3 98600 13520 ? S 09:18 0:00 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp -nocursor root 335238 0.0 0.0 12348 1124 pts/1 S+ 13:32 0:00 grep --color=auto Xvfb [root@yfw Spark]# export DISPLAY=:99 [root@yfw Spark]# ps aux | grep -i "Xvfb.*:99" openfire 272681 0.0 0.3 98600 13520 ? S 09:18 0:00 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp -nocursor root 335631 0.0 0.0 12348 2452 pts/1 S+ 13:34 0:00 grep --color=auto -i Xvfb.*:99 [root@yfw Spark]# export DISPLAY=:99 [root@yfw Spark]# xwininfo -root -display :99 -bash: xwininfo: command not found [root@yfw Spark]#
最新发布
10-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值