android - 自定义键盘 - 无法识别启动 Activity : Default Activity not found

标签 android android-studio android-softkeyboard custom-keyboard soft-keyboard

我正在学习有关为 Android 设备创建自定义键盘的教程。我正在使用 Android Studio 2.1.2。程序中没有 Activity ,因为您必须在语言和输入设置中激活键盘。

当我运行该程序时出现此错误:“无法识别启动 Activity :未找到默认 Activity 启动 Activity 时出错”

我已经在网站上发帖,但没有收到任何回复。我一步一步地跟着教程看了几天。我是 Android Studio 和 Android 应用程序的新手,想知道是否有人知道如何帮助我。

这是我关注的网站的链接:http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615

最佳答案

我刚刚弄清楚需要做什么。 您必须编辑配置并将启动选项更改为“无”。这样它就不会尝试启动不存在的 Activity 。 运行->编辑配置然后寻找启动选项

关于android - 自定义键盘 - 无法识别启动 Activity : Default Activity not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38377266/

相关文章:

android-layout - 不想在 Android 中按下 EditText 时(键盘出现后)隐藏 EditText View ?

android - 如何在没有 EditText 的情况下从 Android 软键盘附加按键事件?

android - 放大图像以填充 Android 中的整个 ImageView

android - 通过Gradle执行本地单元测试时,为什么BuildConfig.DEBUG设置为false?

android - 如何在android fragment 中正确实现接口(interface)?

java - 无法解析 com.google.android.gms :play-services-ads:19. 1.0

android studio 创建新文件,无法调整窗口大小

php - 用两个词填充依赖的微调器

android - 在图表引擎中的行和标签值之间留出空间

android - 如何使用 ADB 命令显示键盘?