Questions tagged [android-gradle-2.2]
15 questions
54
votes
8 answers
\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist
I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message…

扈丽霞
- 561
- 1
- 4
- 4
15
votes
3 answers
How to access app Module Classes from Library Classes in Android?
I created two modules in single android project.
app module(which is default my app module)
and another added library module.
Now app module have many java classes. i want to access .Java class of app module in library module.
Module app has a…

Harsh Bhavsar
- 1,561
- 4
- 21
- 39
6
votes
0 answers
Android Studio - Gradle duplicate class found on another source set
I am facing an weird problem regarding Gradle source set. I suspect this problem belongs to Android Studio. My Gradle file defines 4 product flavors and 4 source set including main. My activity files are put on different source set but not in main…

iamcrypticcoder
- 2,609
- 4
- 27
- 50
3
votes
1 answer
Gradle: DSL method not found: minSdkVersion / targetSdkVersion / compileSdkVersion / buildToolsVersion
As it took me some time to find the solution for this error, I post my problem and solution here in the hope that I find it next time faster:
Error:(39, 0) Gradle DSL method not found: 'minSdkVersion()'
What I tried to do:
I followed the Android…

hb0
- 3,350
- 3
- 30
- 48
2
votes
1 answer
NoReadAccessException - Read access is allowed from event dispatch thread or inside read-action only
System/api Configuration
Android studio version : 2.2.3
Gradle version : 2.2.1
Java version : 1.8
classpath 'com.android.tools.build:gradle:1.3.1'
Exception
18:26:43 NoReadAccessException
Read access is allowed from event dispatch thread…

Yogesh Rathi
- 6,331
- 4
- 51
- 81
2
votes
1 answer
Couldn't build android gradle with Crashlytics 2.6.7 and io.branch.sdk.android.library:2+ while proguard enable?
My Gradle Settings:
compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
compile('io.branch.sdk.android:library:2.+') {
transitive = true;
}
with above crashlytics & branch.io try to build gradle with…

Ilanthirayan Paramanathan
- 440
- 5
- 18
1
vote
1 answer
./gradlew No such file or directory - Android studio 2.3
When i try to build the android app from command line in the android studio . I get command not found. but im able to run the app with the play button.
M01GMBS30ZVG8WP:paylahmerchant dheerajprasad$ ls
MobileSDK gradle …

dheeraj
- 195
- 2
- 19
1
vote
0 answers
Android: Strip unnecessary classes/sourcesets in particular build variant
I have been researching the right approach for designing android library. My question is that how can I avoid putting all Source code( for all buildvariants) in a particular build.
For example ,
My current approach is simple check something like…

bj4947
- 880
- 11
- 32
1
vote
1 answer
Android Studio 2.2.2 installed, while running new project getting gradle project refresh failed error
After I have installed Android Studio 2.2.2 version. when i create new project and run means, gradle not sync. I am getting this following error.
Gradle 'MyAptest' project refresh failed
Error:Cause: java.lang.NullPointerException
at…

harikrishnan
- 1,985
- 4
- 32
- 63
1
vote
0 answers
Gradle 2.2 NDK debugging requires release Build Variant
I am using the following:
Android Studio 2.2.2
Android Gradle Plugin 2.2.2
NDK r12b, r13
externalNativeBuild (ndkBuild and cmake)
I have a native JNI .so that statically links roughly two dozen other libraries. The native library exposes a Java…

bstar55
- 3,542
- 3
- 20
- 24
0
votes
3 answers
Gradle asks for nonexistent support library version
Recently I've been getting this problem.
As far as I know, there is no 26.X.X versions of these support libraries, what does Gradle wants from me?

Necroqubus
- 331
- 2
- 18
0
votes
2 answers
duplicate entry of library gradle causing application not run
I searched alot but not found any solution of my problem, i tried to run my app on any device and i got this error:
it's throwing an error with com.github.bumptech.glide:glide:3.5.2 ,but it's used only single time how the classes of it got…

Zar Saeed
- 100
- 2
- 13
0
votes
1 answer
Duplicate v4 Support issue.Tried all options.Help Needed
I am working nearly 2 days to get rid of v4 dulicate issue on signed apk build.I have Two Modules. The one SDK which connects FB has v4 SUpport.
I have excluded v4 from everywhere on gradle but still i am getting
Error:Execution failed for task…
0
votes
0 answers
I can not update my gradle plugin Android Studio in Ubuntu 14.0.4
I have been trying to update my gradle plugin and is failing at it. My current gradle plugin is 2.1.2 and i want to update it to 2.2.0. I updated android studio and gradle plugin is still same. I have download gradle 3.3 manually and set gradle…

gulzainkhan98
- 21
- 7
0
votes
0 answers
Upgrade to gradle 2.2.3 breaks my build
I'm trying to update my gradle file to work with version 2.2.3.
However, I get the following error when building:
java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0
As far as I…

Rom Shiri
- 1,390
- 4
- 16
- 29