Hmmm geht bei mir nicht. Android Studio gibt Fehlermeldungen. Anbei Screenshots und hier der Code:
plugins {
id 'com.android.application'
}
android {
namespace 'de.lnetwork.lmanagement'
compileSdk 32
defaultConfig {
applicationId "de.lnetwork.lmanagement"
minSdk 22
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.google.android.gms:play-services-cronet:18.0.1'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'org.chromium.net:cronet-api:98.4758.101'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Alles anzeigen
package de.lnetwork.lmanagement;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import android.app.DownloadManager;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.textclassifier.ConversationActions;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.loopj.android.http.*;
public class Startseite extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_startseite);
String email = getIntent().getExtras().getString("email");
String password = getIntent().getExtras().getString("password");
final Button buttonMenuStartseite = (Button) findViewById(R.id.buttonMenuStartseite);
AsyncHttpClient client = new AsyncHttpClient();
}
}
Alles anzeigen