编译运行安卓程序时The launch will only sync the application package on the device

今天调试程序的时候突然出现了一个问题,安装上程序后,程序不会自动启动

控制台报错如下:

[2014-02-27 18:01:42 - xxxxxx] No Launcher activity found!

[2014-02-27 18:01:42 - xxxxxx] The launch will only sync the application package on the device!


在网上找了一些资料,都是说没有写这段代码

<intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>


可实际情况是,我AndroidManifest.xml是没问题的

最后找了好久,才找到了问题,在这里记录一下,也希望可以帮助后来者...O(∩_∩)O哈哈~


我在intent-filter里多加了一个action,红色位置,删掉就好了

           <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.View" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>






This error usually occurs when the CUDA runtime system is unable to find the kernel image required to execute the CUDA code on the device. There are several possible causes for this error, including: 1. Incorrect installation of CUDA toolkit: Make sure that you have installed the CUDA toolkit correctly and that all required components are present. 2. Compatibility issues: Ensure that your device is compatible with the CUDA version you are using. Check the CUDA compatibility matrix to confirm. 3. Insufficient memory: If your device does not have enough memory to execute the kernel, you may encounter this error. Try reducing the size of your input data or increasing the memory available to the device. 4. Invalid kernel launch configuration: Verify that the kernel launch configuration is valid and does not exceed the device's capabilities. 5. Corrupted kernel image: If the kernel image is corrupted, you may encounter this error. Try rebuilding the kernel or reinstalling the CUDA toolkit. 6. Device driver issues: Ensure that your device drivers are up-to-date and compatible with your CUDA version. To resolve this error, you can try the following steps: 1. Check that your CUDA installation is correct and complete. 2. Verify that your device is compatible with the CUDA version and that the device drivers are up-to-date. 3. Check that your input data size is within the device's memory limits. 4. Verify that your kernel launch configuration is valid and does not exceed the device's capabilities. 5. Try rebuilding the kernel or reinstalling the CUDA toolkit if the kernel image is corrupted.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值