Open ghost opened 4 years ago
package com.test2; // ← Make sure that is your package name
import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity;
public class SplashActivity extends AppCompatActivity {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = new Intent(this, MainActivity.class); startActivity(intent); finish(); }
}
Thanks, it resolves the error w.r.t package android.support.v7.app
To resolve the error: Run the SplashActivity.java file as follows
package com.test2; // ← Make sure that is your package name
import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity;
public class SplashActivity extends AppCompatActivity {
}