Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradlew assembleDebug generates no changes

Problem

I have just finished making a few changes in my React Native app and on the android emulator when reloading ( R, R) then changes appear.

I then ran the command:

./gradlew assembleDebug

to generate a debug apk.

When I run it on the phone then changes aren't there, it still is an old version.


I have tried:

  1. Deleting the apk in:

    ./app/build/outputs/apk
    
  2. Deleting the whole:

    ./app/build directory

  3. Tried the command:

    ./gradlew cleanBuildCache
    
  4. Rebooting after cleaning the cache (3) and deleting the build directory (2)

  5. Tried the command:

    gradlew clean
    

However I still get an old version of the apk generated each time.

like image 778
Mederic Avatar asked Nov 17 '17 09:11

Mederic


1 Answers

I think you must generate the bundle manually since you run the app on your real device.

Unable to load script from assets index.android.bundle on windows

like image 166
DennisFrea Avatar answered Oct 19 '22 07:10

DennisFrea