gpt4 book ai didi

java - Android 添加不起作用的应用程序类

转载 作者:行者123 更新时间:2023-12-01 13:51:42 24 4
gpt4 key购买 nike

将应用程序类添加到我的应用程序中的问题

应用类:

 public class QmerceApp extends Application {
@Override
public void onTerminate() {
super.onTerminate(); //To change body of overridden methods use File | Settings | File Templates.
ControlEventBus.getInstance().GetCommand(EventType.Application).SendEvent(EventType.Application, EventAction.ApplicationShutdown);
}

@Override
public void onCreate() {
super.onCreate(); //To change body of overridden methods use File | Settings | File Templates.
ControlEventBus.getInstance().GetCommand(EventType.Application).SendEvent(EventType.Application, EventAction.ApplicationSetup);
}
}

list 文件:

 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.qmerce.client"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="17"/>
<application android:label="@string/app_name" android:logo="@drawable/qmerce_logo" android:icon="@drawable/ic_launcher" android:name="com.qmerce.client.QmerceApp">
<activity android:name=".Activity.MainActivity"
android:theme="@style/Theme.Qmerceclient"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>

现在我的问题是我设置了断点并到达那里不知道我在这里做错了什么......

最佳答案

嗨,我认为您需要检查一下您的软件包,请看看您正在使用什么软件包,请指定它们。

关于java - Android 添加不起作用的应用程序类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19906837/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com