Fixed
Status Update
Comments
to...@gmail.com <to...@gmail.com> #2
Ooops. Forgot these:
Compile SDK version: 23
Android SDK Tools version: 24.4.1
Compile SDK version: 23
Android SDK Tools version: 24.4.1
ha...@gmail.com <ha...@gmail.com> #3
I got the same issue when adding a new Fragment.
Android Studio Version 2.2.1
Build Number: AI-145-3330264
Build Tools version: 24.0.2
Gradle version: 2.14.1
Android Plugin version: 2.2.1
Android Studio Version 2.2.1
Build Number: AI-145-3330264
Build Tools version: 24.0.2
Gradle version: 2.14.1
Android Plugin version: 2.2.1
sd...@gmail.com <sd...@gmail.com> #4
i have this error and make me crasy
na...@gmail.com <na...@gmail.com> #5
Any updates on this? The report is more than one year old and is still happening in AS 2.3.
ab...@gmail.com <ab...@gmail.com> #6
I still face this issue even after the updates released... is it really a bug or we are doing something wrong? PLEASE let us know
na...@gmail.com <na...@gmail.com> #7
Same issue here, waiting for a fix
ga...@ahytech.com <ga...@ahytech.com> #8
when will it be fixed?
si...@gmail.com <si...@gmail.com> #9
still happens for me, here are my details:
Android Studio 2.3.1
Build #AI-162.3871768, built on April 1, 2017
JRE: 1.8.0_112-release-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Android Studio 2.3.1
Build #AI-162.3871768, built on April 1, 2017
JRE: 1.8.0_112-release-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
la...@smartcom.com <la...@smartcom.com> #10
Same issue here, waiting for a fix
cr...@gmail.com <cr...@gmail.com> #11
I had this issue and realised what the problem was for me.
I had the `dependencies` block declared *outside* the `android` block. When I move the dependencies block inside android, all works well and the file isn't corrupted.
I had the `dependencies` block declared *outside* the `android` block. When I move the dependencies block inside android, all works well and the file isn't corrupted.
[Deleted User] <[Deleted User]> #12
I have the same error on API level 25
ab...@gmail.com <ab...@gmail.com> #13
Also having this issue, Gradle gets corrupted for unknown reasons.
an...@gmail.com <an...@gmail.com> #14
I have the same error. After create a Black Fragment.
al...@gmail.com <al...@gmail.com> #15
I have the same issue in Android 2.3
It is very annoying
It is very annoying
na...@gmail.com <na...@gmail.com> #16
Same thing here when creating new activity.
mi...@gmail.com <mi...@gmail.com> #17
What should we do to resolve this? As it is very annoying
ch...@gmail.com <ch...@gmail.com> #18
Suffering from that bug here too
wo...@gmail.com <wo...@gmail.com> #19
same here
mb...@gmail.com <mb...@gmail.com> #20
Same issue here as well
hy...@gmail.com <hy...@gmail.com> #21
Any updates on this? The report is more than one year old and is still happening in AS 2.3.
ch...@gmail.com <ch...@gmail.com> #22
And here... erg....
ch...@gmail.com <ch...@gmail.com> #23
If you're using double quotation marks you might see a benefit from using single quotation marks:
compile "com.j256.ormlite:ormlite-android:5.0"
to
compile 'com.j256.ormlite:ormlite-android:5.0'
I also found where I was using strings a hacky way of making it work was to go from
string ormliteVersion='5.0'
string ormlite='com.j256.ormlite:ormlite-android:' + ormliteVersion
compile ormlite
too
string ormliteVersion='5.0'
string ormlite='com.j256.ormlite:ormlite-android:' + ormliteVersion
compile ormlite + ''
compile "com.j256.ormlite:ormlite-android:5.0"
to
compile 'com.j256.ormlite:ormlite-android:5.0'
I also found where I was using strings a hacky way of making it work was to go from
string ormliteVersion='5.0'
string ormlite='com.j256.ormlite:ormlite-android:' + ormliteVersion
compile ormlite
too
string ormliteVersion='5.0'
string ormlite='com.j256.ormlite:ormlite-android:' + ormliteVersion
compile ormlite + ''
je...@gmail.com <je...@gmail.com> #24
This is supremely annoying.. and the 'remove comments' work around just encourages poor readability
ma...@gmail.com <ma...@gmail.com> #25
18 months and it's not fixed yet. Super annoying.
is...@gmail.com <is...@gmail.com> #26
About to be sep 2017, and this bug has not been solved. *Annoyed*
vi...@gmail.com <vi...@gmail.com> #27
This is supremely annoying.. and the 'remove comments' work around just encourages poor readability
[Deleted User] <[Deleted User]> #28
Repeatable on Android Studio 2.3.3
When will that be fixed?
When will that be fixed?
cr...@gmail.com <cr...@gmail.com> #29
To repeat for anyone who missed it, removing comments wasn't the only thing that solved this for me. You could also try this:
>I had the `dependencies` block declared *outside* the `android` block. When I move the dependencies block *inside* android, all works well and the file isn't corrupted.
>I had the `dependencies` block declared *outside* the `android` block. When I move the dependencies block *inside* android, all works well and the file isn't corrupted.
re...@gmail.com <re...@gmail.com> #30
Great!! Thanks!!
rp...@google.com <rp...@google.com> #31
Increasing priority given # of votes
vs...@google.com <vs...@google.com>
pa...@google.com <pa...@google.com> #32
This bug was raised on AS 1.5.1. A few fixes related with this have been merged.
Does anyone knows if this is still happening in a more recent build (eg 3.2 or 3.3)?
(I'm trying to reproduce it, but so far haven't had luck. Tried combinations of "" '' and //)
Does anyone knows if this is still happening in a more recent build (eg 3.2 or 3.3)?
(I'm trying to reproduce it, but so far haven't had luck. Tried combinations of "" '' and //)
pa...@google.com <pa...@google.com> #33
Tentatively closing this ticket. Please re-open, or even better, create a new ticket for AS 3.3/3.4.
Description
apply plugin: 'com.android.application'
....
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
// AppIntro library dependency - unused.
compile 'com.github.paolorotolo:appintro:3.3.0'
// MaterialDrawer library dependency - used in implementation of navigation drawer.
compile('com.mikepenz:materialdrawer:4.6.3@aar') {
transitive = true
}
// AndroidIconics library dependencies - used in several icons throughout the app.
// Included all of the icon fonts available, some may be unused.
// Core AndroidIconics dependency.
compile 'com.mikepenz:iconics-core:2.5.3@aar'
// Icon font dependencies.
compile 'com.mikepenz:google-material-typeface:2.1.0.1.original@aar'
compile 'com.mikepenz:material-design-iconic-typeface:2.2.0.1@aar'
compile 'com.mikepenz:fontawesome-typeface:4.5.0.1@aar'
compile 'com.mikepenz:octicons-typeface:3.2.0.1@aar'
compile 'com.mikepenz:meteocons-typeface:1.1.0.1@aar'
compile 'com.mikepenz:community-material-typeface:1.3.41.1@aar'
compile 'com.mikepenz:weather-icons-typeface:2.0.10.1@aar'
compile 'com.mikepenz:typeicons-typeface:2.0.7.1@aar'
compile 'com.mikepenz:entypo-typeface:1.0.0.1@aar'
compile 'com.mikepenz:devicon-typeface:2.0.0.1@aar'
compile 'com.mikepenz:foundation-icons-typeface:3.0.0.1@aar'
compile 'com.mikepenz:ionicons-typeface:2.0.1.1@aar'
// Picasso library dependencies - used for image loading.
compile 'com.squareup.picasso:picasso:2.5.2'
}
Then I decided to add a Settings Activity on my app so I created a new one using the "New" menu. After finishing, the IDE said that it is syncing Gradle files, and after some time, the build failed.
I looked at my app's build.gradle and found the dependencies part is like this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
// AppIntro library dependency - unused.
// MaterialDrawer library dependency - used in implementation of navigation drawer.
compile('com.mikepenz:materialdrawer:4.6.3@aar') {
transitive = true
}
// AndroidIconics library dependencies - used in several icons throughout the app.
// Included all of the icon fonts available, some may be unused.
// Core AndroidIconics dependency.
// Icon font dependencies.
// Picasso library dependencies - used for image loading.
compile
'com.android.support:appcompat-v7:23.1.1'compile
'com.android.support:cardview-v7:23.1.1'compile
'com.android.support:recyclerview-v7:23.1.1'compile
'com.android.support:design:23.1.1'compile
'com.github.paolorotolo:appintro:3.3.0'compile 'com.mikepenz:iconics-core:2.5.3@aar'
compile 'com.mikepenz:google-material-typeface:2.1.0.1.original@aar'
compile 'com.mikepenz:material-design-iconic-typeface:2.2.0.1@aar'
compile 'com.mikepenz:fontawesome-typeface:4.5.0.1@aar'
compile 'com.mikepenz:octicons-typeface:3.2.0.1@aar'
compile 'com.mikepenz:meteocons-typeface:1.1.0.1@aar'
compile 'com.mikepenz:community-material-typeface:1.3.41.1@aar'
compile 'com.mikepenz:weather-icons-typeface:2.0.10.1@aar'
compile 'com.mikepenz:typeicons-typeface:2.0.7.1@aar'
compile 'com.mikepenz:entypo-typeface:1.0.0.1@aar'
compile 'com.mikepenz:devicon-typeface:2.0.0.1@aar'
compile 'com.mikepenz:foundation-icons-typeface:3.0.0.1@aar'
compile 'com.mikepenz:ionicons-typeface:2.0.1.1@aar'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:support-v4:23.1.1'
}
Exactly like that. Probably ignored/didn't like the comments I put in it, but I don't know why the first ones are messed up and the others are not. Then put the support library in the last line.
Here's my details:
Android Studio version: 1.5.1 Build # AI-141.2456560
Build Tools version: 23.0.2
Gradle version: 2.8
Android Plugin version: 1.5.0