6 시간 후 혼자 힘으로 해결하면 AS가 나를 미치게 만듭니다. 어제는 모든 것이 좋았으며 현재는 지원 라이브러리 또는 R 심볼을 해결할 수 없습니다. Android Studio 0.9.0 - 기호를 해결할 수 없습니다.
이 난에 유래에있는 모든 제안 된 수정 사항을 포함하여, 모든게을 시도했다. 필요가 없습니다. this post을보고 싶습니다. 이미 가지고 있으며 해결 방법도 없습니다. 여기 는 지금까지 시도 내용은 다음과 같습니다- 는 지원 LIB가 있음을 Gradle을 파일로 프로젝트를 동기화 프로젝트 (여러 번 ...),
- ,
- 체크 청소/재건 SDK를 관리자에서 -to-날짜,
- 이 Invalide의 캐시/AS,
- 가 .idea 폴더와 내 프로젝트의 .iml 파일을 삭제하고, ,536,913,632 AS에 다시 가져 오기를 다시 시작 0.9 0.8.11에서 결국 내가 AS 제거하고 처음
에서 다시 설치 그리고 이것의 아무도 내 문제를 해결하지 결국 AS (10)
뭔가 정말 이상한는 점이다 나는 처음부터 완전히 새로운 프로젝트를 만들고 내 모든 클래스 & 리소스를이 새로운 프로젝트에 복사하여 복사하려고 시도했다. 그리고 그것은 잠시 동안 (~ 10 분), 어떤 명백한 이유없이 결국 같은 방식으로 손상 될 때까지 일했습니다.
또한 관련이 있는지는 알 수 없지만 AndroidStudio에 "ViewPager"를 입력하고 CTRL-SPACE를 누르면 "android.support.v4.view.ViewPager"클래스가 제안되지 않습니다. CTRL-SPACE를 3 번 연속 누른다면, 그것을 제안합니다. 그래서 나는 그것이 지원 lib를 어딘가에서 찾을 수 있지만 그것을 사용하지 않는다는 것을 의미한다고 생각하니?
은 여기 내 build.gradle
:
apply plugin: 'com.android.library'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "com.mathieumaree.library"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.android.support:support-v13:21.0.0'
}
는거야 곧 내 컴퓨터를 휴식, 그렇지 않으면 난, 제발 도와주세요. 사전에
감사합니다,
마티유
편집 1 :이 단지 내 프로젝트 중 하나에서 발생하는 얘기를 깜빡 했네요
. 다른 것들은 (적어도 현재는) 괜찮을 것 같습니다.
편집 2 : 나는 또한 내 프로젝트가 응용 프로그램 프로젝트 플러스 내부 라이브러리 모듈로 구성되어 있음을 언급하는 것을 잊었다
.그래서 여기 build.gradle
응용 프로그램의 :
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "com.mathieumaree.materialheaderviewpager"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':library')
compile 'com.android.support:support-v13:21.0.0'
compile 'com.android.support:appcompat-v7:21.0.0'
}
앱의 매니페스트 :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mathieumaree.materialheaderviewpager" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.mathieumaree.materialheaderviewpager.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
라이브러리 매니페스트 :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mathieumaree.library">
<application android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme">
</application>
</manifest>
주요 settings.gradle
:
include ':app', ':library'
그리고는 build.gradle
주 :
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.14.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
편집 3 :
& * .iml 파일을 모두 .idea folers을 삭제 한 번 더 시도하고 내 프로젝트를 다시로드 후, 나는 안드로이드 스튜디오가 열리는에 오류가 표시되는 것으로 나타났습니다 :
유효하지 않은 가상 파일에 액세스 : 파일 : // C :/사용자/마티유 /의 AppData가/지역/안드로이드/안드로이드 - studio1/SDK/소스/안드로이드-21; 원본 : 582; 발견 : - : 잘못된 가상 파일 액세스 : file : // C :/Users/Mathieu/AppData/Local/Android/android-studio1/sdk/sources/android-21; 원본 : 582; 발견 -
나는 그것이 SDK을 찾고 의미 확신에 또 다른 위치 (로컬의 AppData/... 안드로이드-21). 내가 이해하지 못하는 것은 :
- 프로젝트 구조에 표시된이 위치
- 는 SDK 경로에서 더 SDK 폴더는이 모든 것이 무엇을 의미하는지이 하나
어떤 생각이되지 않는다 없다?
모든 명백한 일을 시도한 것처럼 보입니다. SDK 폴더는 어디에 있습니까? – stkent
내 C :/Program Files/Android/AndroidStudio 폴더에 있어야합니다. 그런 다음이 문제가 나타났습니다. AndroidStudio를 업그레이드하고 ~/MyAndroidStudioFolder/SDK로 SDK를 옮겨야했습니다 (방금이 [공식 블로그 게시물] (http://tools.android.com/recent/androidstudio0814inbetachannel)을 따라갔습니다) – MathieuMaree
클릭하면 파일 -> 프로젝트 구조, 올바른 경로가 SDK에 표시되어 있습니까? (이 문제는 의심 스럽지만 확인하는 것이 가장 좋습니다.) – stkent