https://kotlinlang.org logo
Title
j

jurajsolarml

02/22/2019, 11:32 AM
Hello,Please can you help me ? I am beginner. Where can be a bug ? /Kotlin 1.3.21,AS 3.5 Canary 5 / I tried to change Gradle version current 5.2.1 and Invalidate Caches/Restart and offline mode did not help. Thanks https://hastebin.com/zeyovujumu.shell https://hastebin.com/umowehuqew.xml https://hastebin.com/gixuvicabe.cpp
h

hho

02/22/2019, 11:48 AM
The problem seems to be in your Gradle build –
Could not resolve com.android.tools.build:aapt2:3.5.0-alpha04-5252756
. It doesn't seem to be Kotlin related at all – maybe try asking in the Gradle Community Slack instead? https://discuss.gradle.org/t/introducing-gradle-community-slack/26731
c

Connor McFadden

02/22/2019, 11:48 AM
This was already posted in #android , you just need to disable
Offline work
by
Preferences -> Build, Execution, Deployment -> Gradle -> Untick Offline Work
j

jurajsolarml

02/22/2019, 12:18 PM
Offline work I tried writing higher, it did not help me :((
classpath 'com.android.tools.build:gradle:3.3.1' I changed to lower or it did not help - gradle offline work Uncheck it did not help - Invalidate Cahces/Restart it did not help
r

rook

02/22/2019, 3:01 PM
Can you post your
build.gradle
and
app/build.gradle
files?
r

rook

02/22/2019, 3:11 PM
And you still get the exact same error as https://hastebin.com/zeyovujumu.shell using those build files?
j

jurajsolarml

02/24/2019, 4:52 PM
@rook does not display code
j

Johannes Waltsgott

02/25/2019, 11:48 AM
@jurajsolarml IIRC I saw you posting lot’s of issues with project setups and the like and always stating that you’re a beginner. May I ask what’s the reason you always use some canary versions? For a beginner, I’d highly recommend using the current stable releases if there is no need for canary…
j

jurajsolarml

02/25/2019, 11:55 AM
@Johannes Waltsgott AS Camary I use it when I upgraded Gradle to a newer version so I asked for the version AS and I did not know how to go back and I have solved it for a long time, so far it just went to cool everything. Think it could be a mistake there?
j

Johannes Waltsgott

02/25/2019, 11:58 AM
I did not know how to go back
Just download the current stable release of AS and install, see also http://tools.android.com/tips/using-multiple-android-studio-versions
Your hastebin links appear empty to me, so I cannot investigate your problem. But I’d keep it as simple (and stable) as possible
j

Johannes Waltsgott

02/25/2019, 1:25 PM
What’s the problem? I just see a AndroidManifest and a RecyclerAdapter?
j

jurajsolarml

02/25/2019, 1:32 PM
j

Johannes Waltsgott

02/25/2019, 2:57 PM
You’re trying to declare an Adapter class as an Activity in the AndroidManifest. This is just not possible and also not necessary.
Just delete line 34
j

jurajsolarml

02/25/2019, 3:18 PM
@Johannes Waltsgott Thanks, its OK 🙂