我已经在android studio中导入了一个项目,但所有标签都给出了错误消息
我下载了这个项目[GitHub],当我在android studio中导入这个项目时,所有标签都显示错误。并且没有显示运行项目的选项。我已经在android studio中导入了一个项目,但所有标签都给出了错误消息,android,Android,我下载了这个项目[GitHub],当我在android studio中导入这个项目时,所有标签都显示错误。并且没有显示运行项目的选项。 如图所示,所有标签均为红色 未找到文件:git.exe 此消息“未找到文件:git.exe”也显示在“事件日志”中 这是我的.xml文件代码 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android
如图所示,所有标签均为红色 未找到文件:git.exe 此消息“未找到文件:git.exe”也显示在“事件日志”中 这是我的.xml文件代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".simple">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/relLayout1"
android:padding="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter you email"
android:textSize="25sp"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:id="@+id/textEmailReg"/>
<EditText
android:id="@+id/input_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:inputType="textEmailAddress"
android:hint="emter email"
android:layout_below="@+id/textEmailReg"/>
<EditText
android:id="@+id/input_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:inputType="textPassword"
android:hint="password"
android:layout_below="@+id/input_email"/>
<EditText
android:id="@+id/input_confirm_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:inputType="textPassword"
android:hint="password"
android:layout_below="@+id/input_password"/>
<android.support.v7.widget.AppCompatButton
android:id="@+id/btn_register"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="35dp"
android:layout_below="@+id/input_confirm_password"
android:text="@string/register"
android:background="@drawable/theme_button"/>
</RelativeLayout>
</RelativeLayout>
</ScrollView>
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
android:layout_centerHorizontal="true"
android:layout_marginTop="120dp"
android:visibility="invisible"/>
</RelativeLayout>
共享xml文件的完整代码我确信代码中没有问题。关于导入问题,您必须共享代码才能看到问题所在。是的,兄弟。我已经用代码更新了我的问题,请现在检查。这不是实际问题,因为即使没有git,您也可以运行项目,所以请上传此问题的完整错误日志
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-database:16.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.firebase:firebase-firestore:21.4.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.firebase:firebase-auth:19.2.0'
}