我有这个错误:
"错误:无法从C:\ Users \ JR&#s读取packageName Computer \ Desktop \ COMT \ Actual Cellar App \ src \ main \ AndroidManifest.xml"
这里的代码显示了我的build.gradle
,我完全不知道我哪里出错了,如果有人能告诉我这种情况可能的修复方法会很好吗?
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task customClean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "sg.edu.tp.cellarapp"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.github.iammert:InteractivePlayerView:f4f6490290'
}
这是我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="sg.edu.tp.cellarapp">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".tophits" />
<activity android:name=".topmusichitspage" />
<activity android:name=".PlaySongActivity" />
<activity android:name=".homescreen" />
<activity android:name=".login" />
<activity android:name=".signup" />
<activity android:name=".explorescreen" />
<activity android:name=".searchmylib" />
<activity android:name=".welcome" />
<activity android:name=".bartist" />
<activity android:name=".b2artist" />
<activity android:name=".b2album" />
<activity android:name=".searchscreen" />
<activity android:name=".Search" />
<activity android:name=".Myplaylist" />
<activity android:name=".playmuisc"></activity>
</application>
</manifest>
答案 0 :(得分:0)
您已在包含空格的文件夹结构中创建了项目。您的结构在路径中包含 - Actual Cellar App
。
在没有空间且应该工作的文件夹中创建项目