Error:(8, 0) Gradle DSL method not found: 'compile()'Possible causes:
- The project 'MorphingTunnelFreeLauncher' may be using a version of Gradle that does not contain the method. Gradle settings
- The build file may be missing a Gradle plugin.apply plugin: 'com.android.library'
android { compileSdkVersion 9 buildToolsVersion "21.1.2"
defaultConfig { minSdkVersion 9 targetSdkVersion 9 }
buildTypes { release { minifyEnabled true //changed shrinkResources true //changed proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }}
dependencies { compile files('libs/google-play-services.jar')}
// 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:1.1.0' compile 'com.google.android.gms:play-services-ads:6.5.+'//changed
}}
allprojects { repositories { jcenter() }}
apply plugin: 'com.android.application'
android { compileSdkVersion 21 buildToolsVersion "21.1.2"
defaultConfig { applicationId "tunnel.dimf" minSdkVersion 9 targetSdkVersion 11 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } }
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }}
dependencies { compile project(':googleplayservices_lib') compile files('libs/appbrain-applift-sdk-v10.32.jar') compile 'com.google.android.gms:play-services-ads:6.5.+'//changed}
Error:Execution failed for task ':googleplayservices_lib:proguardRelease'.> java.io.FileNotFoundException: C:\Users\Erik\AndroidStudioProjects\MorphingTunnelFreeLauncher\googleplayservices_lib\proguard-rules.txt (Det går inte att hitta filen)FAILURE: Build failed with an exception.
* What went wrong:Execution failed for task ':googleplayservices_lib:proguardRelease'.> java.io.FileNotFoundException: C:\Users\Erik\AndroidStudioProjects\MorphingTunnelFreeLauncher\googleplayservices_lib\proguard-rules.txt (Det går inte att hitta filen)
* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/cczREwNEzP0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
Well, i have changed the compile 'com.google.android.gms:play-services-ads:6.5.+'//changed line according to the suggestions given, as it shows in the first box(1) and it comes the error given in the second and third boxes ((2)(3)), So i don't know what the problem is, this time it tried to synchronize the gradle files with the project at least, but not successfully because of that error... still open to suggestions to solve this problem, either the error (8,0) given in the first post or the last one i got.Thanks a lot for the help given.
(1)
apply plugin: 'com.android.application'android {compileSdkVersion 21buildToolsVersion "21.1.2"defaultConfig {applicationId "tunnel.dimf"minSdkVersion 9targetSdkVersion 11compileOptions {sourceCompatibility JavaVersion.VERSION_1_5targetCompatibility JavaVersion.VERSION_1_5}}buildTypes {release {minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'}}}dependencies {
compile project(':googleplayservices_lib')compile files('libs/appbrain-applift-sdk-v10.32.jar')
compile 'com.google.android.gms:play-services-ads:6.5.+'//changed}
(2)
Error:Execution failed for task ':googleplayservices_lib:proguardRelease'.> java.io.FileNotFoundException: C:\Users\Erik\AndroidStudioProjects\MorphingTunnelFreeLauncher\googleplayservices_lib\proguard-rules.txt (Det går inte att hitta filen)(3)FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':googleplayservices_lib:proguardRelease'.> java.io.FileNotFoundException: C:\Users\Erik\AndroidStudioProjects\MorphingTunnelFreeLauncher\googleplayservices_lib\proguard-rules.txt (Det går inte att hitta filen)* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED
____________________
apply plugin: 'com.android.library'
android { compileSdkVersion 9 buildToolsVersion "21.1.2"
defaultConfig { minSdkVersion 9 targetSdkVersion 9 }
buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }}
dependencies { compile files('libs/google-play-services.jar')}
apply plugin: 'com.android.application'
android { compileSdkVersion 21 buildToolsVersion "21.1.2"
defaultConfig { applicationId "tunnel.dimf" minSdkVersion 9 targetSdkVersion 11 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } }
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }}
dependencies { compile project(':googleplayservices_lib') compile files('libs/appbrain-applift-sdk-v10.32.jar')}
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/cczREwNEzP0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
compile project(':googleplayservices_lib')AGPBI: {"kind":"ERROR","text":"No resource found that matches the given name (at \u0027value\u0027 with value \u0027@integer/google_play_services_version\u0027).","sourcePath":"C:\\Users\\Erik\\AndroidStudioProjects\\MorphingTunnelFreeLauncher\\morphingTunnel\\build\\intermediates\\manifests\\full\\debug\\AndroidManifest.xml","position":{"startLine":85,"startColumn":28,"startOffset":3222,"endColumn":65,"endOffset":3259},"original":""}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:Execution failed for task ':morphingTunnel:processDebugResources'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Erik\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error:(85, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
<application>
...
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> </application>