Obsolete
Status Update
Comments
we...@gmail.com <we...@gmail.com> #2
[Comment deleted]
we...@gmail.com <we...@gmail.com> #3
[Comment deleted]
we...@gmail.com <we...@gmail.com> #4
[Comment deleted]
we...@gmail.com <we...@gmail.com> #5
[Comment deleted]
we...@gmail.com <we...@gmail.com> #6
Build: 2.2.2, AI-145.3360264, build on october 18, 2016
JRE: 1.8.0_76-release-b03 amd64
JVM: OpenJDK 64 Bit Server VM by JetBrains s.r.o.
OS: Windows 7 x64
The same here. Since the update from version 2.2.1. Sometimes in some rare cases "Build - Clean" helps.
JRE: 1.8.0_76-release-b03 amd64
JVM: OpenJDK 64 Bit Server VM by JetBrains s.r.o.
OS: Windows 7 x64
The same here. Since the update from version 2.2.1. Sometimes in some rare cases "Build - Clean" helps.
we...@gmail.com <we...@gmail.com> #7
Update:
When turning off "Instant Run" (in "Settings" - "Build, Execution, Deployment") it works, but now you do not have the functionality of Instant Run.
When turning off "Instant Run" (in "Settings" - "Build, Execution, Deployment") it works, but now you do not have the functionality of Instant Run.
[Deleted User] <[Deleted User]> #8
Turning off "Instant Run" did not work for me, nor did cleaning the project.
ch...@gmail.com <ch...@gmail.com> #9
it maybe you have more than one resource,on the top of ide you may see tip like this:,chese the right one,it will be work.
hk...@gmail.com <hk...@gmail.com> #10
I was having the same problem
the problem is with layout xml file (v21)
i delete the xml (v21) and create a new one and the error gone .
the problem is with layout xml file (v21)
i delete the xml (v21) and create a new one and the error gone .
ai...@gmail.com <ai...@gmail.com> #11
turning off instant run DO WORKED for me.
su...@gmail.com <su...@gmail.com> #12
I tried all these methods above,it did not worked.Then I opened the "Gradle" in the right side of the Android Studio, and clicked the "Refresh All Gradle Project",it workded(Linux ,OpenJDK8 64).
By the way,the Instant Run is so unstable,just turn off it.
By the way,the Instant Run is so unstable,just turn off it.
sh...@gmail.com <sh...@gmail.com> #13
I remove all cache file in <USER>/.gradle/caches and rebuild project, problem solved! I guess gradle loads wrong file in cache. Hope it can help someone.
ro...@gmail.com <ro...@gmail.com> #14
Happened also in, but suddenly disappeared after 3 mins...:
Android Studio 3.0 Beta 7
Build #AI-171.4365657, built on September 28, 2017
JRE: 1.8.0_152-release-915-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
RG
Android Studio 3.0 Beta 7
Build #AI-171.4365657, built on September 28, 2017
JRE: 1.8.0_152-release-915-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
RG
an...@gmail.com <an...@gmail.com> #15
Currently i have the same Problem when i debug into sqlite classes from the android.database package. Stepping into SQLiteDatabase.insert(), originally sourcecode row 1341, jumps instead to row 1736 and stepping forward brings the "sourcecode does not match bytecode" message up.
I tried a lot, but nothing helps.
- switch off instant run
- switch off minifyEnabled
- clean build
- delete [userdir]\.gradle\caches
- import clean project code from repo
- reinstall android studio and sdk
- install on a different system with Win7
- try different compile-, target-, minSdkVersions
- try different gradle and gradle tool versions
System:
- Android Studio 2.3.3
- Build #AI-162.4069837, built on June 6, 2017
- JRE: 1.8.0.112-release-b06 amd64
- JVM: OpenJDK 64-bit Server VM by Jetbrains s.r.o
- Win 10
- Physical Samsung Debug Devices with Android 7.0 (24) and Android 6.0 (23)
- SDK Version 23-26
- Gradle 3.3 (Tool 2.3.x) and 2.14.1 (Tool 2.2.3)
I tried a lot, but nothing helps.
- switch off instant run
- switch off minifyEnabled
- clean build
- delete [userdir]\.gradle\caches
- import clean project code from repo
- reinstall android studio and sdk
- install on a different system with Win7
- try different compile-, target-, minSdkVersions
- try different gradle and gradle tool versions
System:
- Android Studio 2.3.3
- Build #AI-162.4069837, built on June 6, 2017
- JRE: 1.8.0.112-release-b06 amd64
- JVM: OpenJDK 64-bit Server VM by Jetbrains s.r.o
- Win 10
- Physical Samsung Debug Devices with Android 7.0 (24) and Android 6.0 (23)
- SDK Version 23-26
- Gradle 3.3 (Tool 2.3.x) and 2.14.1 (Tool 2.2.3)
ta...@gmail.com <ta...@gmail.com> #16
The third party rom usually do not match with the official sdk framework.jar.
Is there a way to to custom the android framework.jar which load by the debugger?
Is there a way to to custom the android framework.jar which load by the debugger?
va...@gmail.com <va...@gmail.com> #17
Same problem, "sourcecode does not match bytecode"
ki...@gmail.com <ki...@gmail.com> #18
I had the same issue. Non of ways above didn't work. But I noticed that debug cursor is shifted on 4 lines below from equivalent source code line. I enabled opportunity to edit source file and added 4 lines at the top and all works for me. It was file View.java (API 26). Probably it is needed to add blank lines in certain places of file.
si...@gmail.com <si...@gmail.com> #19
On every chenges in code. "sourcecode does not match bytecode"
an...@gmail.com <an...@gmail.com> #20
same for me using androi studio 3.1.2 android-27
cv...@gmail.com <cv...@gmail.com> #21
i am facing the same issue with androi studio 3.0.1
[Deleted User] <[Deleted User]> #22
SOLUTION HERE: I am using android studio 3.0.1 and faced the same issue. The possible solutions are
1. Click Build->Clean
2. Disable Instant Run, in Settings->Build, Execution, Deployment
3. Click File-> Invalidate Caches/Restart.
1. Click Build->Clean
2. Disable Instant Run, in Settings->Build, Execution, Deployment
3. Click File-> Invalidate Caches/Restart.
na...@gnuzero.org <na...@gnuzero.org> #23
felt like wasted the whole afternoon,
because facebook login request code (6xxxx) is not what it returns and when try to debug into the library code i am seeing the same "source code and byte code not matching"
because facebook login request code (6xxxx) is not what it returns and when try to debug into the library code i am seeing the same "source code and byte code not matching"
jo...@google.com <jo...@google.com>
[Deleted User] <[Deleted User]> #24
Comment has been deleted.
kd...@google.com <kd...@google.com> #25
I think this may be obsolete since it's been years since this bug was filed and this part of the product has been modified heavily since then. If this is still an issue, please feel free to open a new bug.
be...@gmail.com <be...@gmail.com> #26
Still a problem for me in 2023. I have tried all of the solutions above using the following:
IDE Details:
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Device Details:
Sony Xperia 1IV : Android 13, Tiramisu, API 33
Project Details:
targetSdkVersion 30
minSdkVersion 26
buildToolsVersion '29.0.3'
compileSdkVersion 31
Changing the compile and target sdk versions to 33 also didn't help
If anyone has any other suggestions not listed in this thread, please feel free to share
IDE Details:
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Device Details:
Sony Xperia 1IV : Android 13, Tiramisu, API 33
Project Details:
targetSdkVersion 30
minSdkVersion 26
buildToolsVersion '29.0.3'
compileSdkVersion 31
Changing the compile and target sdk versions to 33 also didn't help
If anyone has any other suggestions not listed in this thread, please feel free to share
dc...@allegion.com <dc...@allegion.com> #27
Same problem for me, tried suggestions above. Specifically, I get the error when trying to debug "Activity.java", "ActivityThread.java", "TransactionExecutor.java" - while some other java source appears to debug properly such as "Looper.java".
"Apply Code Changes" results in a red "Runtime Error" message in lower left.
Android Studio Giraffe | 2022.3.1 Patch 1
Build #AI-223.8836.35.2231.10671973, built on August 17, 2023
Runtime version: 17.0.6+0-b2043.56-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Device Details:
Pixel 7, Android 13, API 33
Project details:
minSdkVersion 23
compileSdk 33
targetSdkVersion 33
jvmTarget = '11'
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
"Apply Code Changes" results in a red "Runtime Error" message in lower left.
Android Studio Giraffe | 2022.3.1 Patch 1
Build #AI-223.8836.35.2231.10671973, built on August 17, 2023
Runtime version: 17.0.6+0-b2043.56-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Device Details:
Pixel 7, Android 13, API 33
Project details:
minSdkVersion 23
compileSdk 33
targetSdkVersion 33
jvmTarget = '11'
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
lo...@gmail.com <lo...@gmail.com> #28
Same problem: android { namespace = "com.example.token" compileSdk = 34
defaultConfig {
applicationId = "com.example.token"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
using Medium Desktop api 34 x86-64
[ro.system.build.fingerprint]: [google/sdk_gpc_x86_64/emu64xa:14/UE2A.240712.001/12084736:userdebug/dev-keys]
Description
1.8.0_76-release-b03x64 Oracle Corporation, Linux(amd64) v4.4.0-42-generic unknown (1920x1080)
I got "Source Code does not match the bytecode" and can not debug into some code parts in a library module. Was AS 2.2.1 included this fixed?
Thanks.