ackage taxicity.app;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Thread thread=new Thread()
{
@Override
public void run() {
super.run();
{
try {
sleep(5000);
} catch (Exception e) {
e.printStackTrace();
} finally {
Intent welcomeIntent = new Intent(MainActivity.this, WellActivity.class);
startActivity(welcomeIntent);
}
}
}
};
thread.start();
}
@Override
protected void onPause() {
super.onPause();
finish();
}
}
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'
> Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
> Querying the mapped value of provider(interface java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
Ошибка при запуске эмулятора
ackage taxicity.app;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Thread thread=new Thread()
{
@Override
public void run() {
super.run();
{
try {
sleep(5000);
} catch (Exception e) {
e.printStackTrace();
} finally {
Intent welcomeIntent = new Intent(MainActivity.this, WellActivity.class);
startActivity(welcomeIntent);
}
}
}
};
thread.start();
}
@Override
protected void onPause() {
super.onPause();
finish();
}
}
Первая майнактивити(splashscreen)
package taxicity.app;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class WellActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_well);
}
Вторая ещё не заполнена добавил только кнопки и фон.