我是新来的(在Stackoverflow和编程android)并且刚刚得到了我的教育书籍等未涵盖的错误。也许你可以覆盖它,我会很高兴:)。我的Manifest出现了问题 - 在app-> search-> main中。继承守守则。一个错误是Android Studio在第92行显示我:因为没有构造函数,但我猜这不是必要的..(当我想要安装它时,我得到了这个错误,即使我删除了它。)
所以这是:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.plaetzmueller.yourworkoutplanner">
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".LoginScreen"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".HomeActivity" />
<activity android:name=".ActiveWorkout"
android:label="@string/ActiveWorkout"
android:parentActivityName=".HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity" />
</activity>
<activity android:name=".AddAWorkoutScreen"
android:label="@string/AddWorkoutPlan"
android:parentActivityName=".HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"/>
</activity>
<activity android:name=".Excercises"
android:label="@string/Excercises"
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity android:name=".ProgressScreen"
android:label="@string/Progress"
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity android:name=".VideoScreen"
android:label="@string/Videos"
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity android:name=".FriendList"
android:label="@string/Friends"
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity" />
</activity>
<activity android:name=".TrophyActivity"
android:label="@string/Trophys"
android:parentActivityName=".HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity android:name=".SeeMoreActivity"
android:label="@string/SeeMore"
android:parentActivityName=".HomeActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity"/>
</activity>
<activity android:name=".SQLHelper" />
<activity android:name=".VideoScreenNutrion" />
<activity android:name=".VideoScreenExerciseExecution" />
<activity android:name=".VideoScreenStretchingAndWarmingUp" />
<activity android:name=".VideoScreenHowTo"></activity>
</application>
</manifest>
答案 0 :(得分:0)
请检查您注册为活动的课程是否真正扩展了活动。如果.SQLHelper是Activity的实例,至少我会感到惊讶。比删除所有冗余声明。