필요한 모든 종속성을 가진 AAR 파일을 생성하는 데 문제가 있습니다. 내가 파일> 새로 모듈> 가져 오기 .JAR/.AAR 패키지를 사용하여 생성 된 AAR 파일을 추가하려고모든 종속성을 가진 AAR 파일 생성
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "3.5.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.facebook.android:facebook-android-sdk:4.14.1'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
compile 'com.google.android.gms:play-services:11.0.4'
}
: build.gradle의 구성은 다음과 같습니다. 그러나 페이스 북과 Google Play 서비스가 특정 외부 종속성을 모두 포함 할 수는 없습니다. 오류 메시지 :
Error:No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
그리고 AndroidManifest.xml에는 com.facebook.FacebookActivity가 없습니다.
이 문제를 해결할 때 도움을주십시오. pom.xml 파일을 사용하여
업데이트
시도 건물,하지만 사용.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.loginradius.androidsdk</groupId>
<artifactId>loginradius-android-sdk</artifactId>
<version>3.5.0</version>
<packaging>aar</packaging>
<properties>
<!-- use UTF-8 for everything -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.facebook.android</groupId>
<artifactId>facebook-android-sdk</artifactId>
<version>4.27.0</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>google-play-services</artifactId>
<version>r22</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.9.0-rc.1</version>
<configuration>
<sdk>
<platform>19</platform>
</sdk>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
https://stackoverflow.com/questions/24325333/no-resource-found-integer-google-play-services-version-whats-this – Lingeshwaran
@Lingeshwaran : 나는 내가 '적절한 솔루션 –