gpt4 book ai didi

android - 如何解决明显错误?

转载 作者:行者123 更新时间:2023-11-30 02:13:11 26 4
gpt4 key购买 nike

您好,我面临无法在 Android 中启动 Activity 的问题。我正在使用不同的包......所以请帮助我......当我运行这个应用程序时它在下面给出

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="yougotag.com.pharmatnt" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/yougotag"
android:label="@string/app_name"
android:theme="@style/NewTheme" >
<activity
android:name=".usermanagement.usercreation.LoginActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<activity android:name=".usermanagement.usercreation.AccountInformation"
android:screenOrientation="portrait" ></activity>
<activity android:name=".usermanagement.usercreation.PersonalInfo"
android:screenOrientation="portrait" ></activity>
<activity android:name=".usermanagement.usercreation.AddressInfo"
android:screenOrientation="portrait" ></activity>
<activity android:name=".usermanagement.usercreation.TermsConditions"
android:screenOrientation="portrait" ></activity>
<activity android:name=".usermanagement.usercreation.ConsentActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".usermanagement.usercreation.SettingsDeletion"
android:screenOrientation="portrait" ></activity>

<activity android:name=".usermanagement.usercreation.VerifyAccountActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.ForgotUniqueIdActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.SendUniqueIdActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.ForgotPasswordActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.SendPasswordActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.HomeActivity"
android:screenOrientation="portrait" ></activity>
<activity android:name=".passwordmanagement.ChangePasswordNewActivity"
android:screenOrientation="portrait" ></activity>



</application>

</manifest>

我的错误是这样的...

 04-23 19:10:13.000: E/cutils-trace(5674): Error opening trace file: No such file or directory (2)
04-23 19:10:13.214: E/memtrack(5674): Couldn't load memtrack module (No such file or directory)
04-23 19:10:13.214: E/android.os.Debug(5674): failed to load memtrack module: -2
04-23 19:10:13.824: E/cutils-trace(5693): Error opening trace file: No such file or directory (2)
04-23 19:10:14.007: E/memtrack(5693): Couldn't load memtrack module (No such file or directory)
04-23 19:10:14.007: E/android.os.Debug(5693): failed to load memtrack module: -2
04-23 19:10:14.244: E/AndroidRuntime(5704): FATAL EXCEPTION: main
04-23 19:10:14.244: E/AndroidRuntime(5704): Process: yougotag.com.pharmatnt, PID: 5704
04-23 19:10:14.244: E/AndroidRuntime(5704): java.lang.RuntimeException: Unable to start activity ComponentInfo{yougotag.com.pharmatnt/yougotag.com.pharmatnt.usermanagement.usercreation.LoginActivity}: java.lang.NullPointerException
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2350)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2402)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.app.ActivityThread.access$900(ActivityThread.java:151)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1333)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.os.Handler.dispatchMessage(Handler.java:110)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.os.Looper.loop(Looper.java:193)
04-23 19:10:14.244: E/AndroidRuntime(5704): at android.app.ActivityThread.main(ActivityThread.java:5304)
04-23 19:10:14.244: E/AndroidRuntime(5704): at java.lang.reflect.Method.invokeNative(Native Method)

所以请告诉我如何解决它...我遇到了问题...

最佳答案

在我的 list 文件中,一切都指向正确的方向......但有两件事我做错了1)我们的包裹名称必须是小写字母2) 在 oncreate 方法中我给出了错误的东西。

关于android - 如何解决明显错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29825085/

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