alexpfx
alexpfx

Reputation: 6700

Code generated by Android Studio doesn't shows variable named correctly

After installed a new development environment the code is generated by Android Studio as it doesn't knows about the source code:

enter image description here

enter image description here

See those p0, p1 named variables.

The sources are installed:

enter image description here

But when I enter some Sdk classes it show a button to Download the sources, but when I press that button, nothing happens.

enter image description here

Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 8, 2018 JRE: 1.8.0_152-release-1136-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-38-generic

Upvotes: 2

Views: 74

Answers (1)

navylover
navylover

Reputation: 13579

Google haven't released Android P source code, so the opened file is a decompiled AppCompatActivity.class

If you change SDK version to 27, and download source using SDK manager, the issue will disappear. the opened file is AppCompatActivity.java

Upvotes: 1

Related Questions