Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gruebeltech.soundloaderpro">

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@drawable/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".CreditActivity"> <-----------------

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

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




</manifest
How do I fix this error ".CreditActivity has no default constructor" in android studio? I have oreo sdk.

What I have tried:

Everything.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gruebeltech.soundloaderpro">

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@drawable/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".CreditActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
Posted
Comments
Richard MacCutchan 4-Aug-18 3:57am    
You could start by showing the relevant code, and indicating where the error occurs.
David Crow 5-Aug-18 22:54pm    
What does your CreditActivity class look like? Does it have a constructor? Did you create it from scratch, or let AS create it for you?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900