0

Having tried to add This game to my phone via Android Studio, while trying to build the project it throws in the event log "All files are up-to-date". I've looked through the program and it was built in eclipse, with no luck converting it to Android Studios.

I've tried to "import" some of the files with no luck.

other solutions I've tried with no luck are outlined in:

Here

And

Here

john smith
  • 50
  • 16

2 Answers2

0

Are you clicking "Build APK" in the Build drop-down menu? If not, try that! Here is a nice reference for building apps in Android Studio.

SahilMak
  • 142
  • 10
  • I don't have that as a choice in the "Build drop down menu" in the menu there only (build project, build module, recompile, rebuild project, generate ant build, and build artifacts) and the one that can be clicked return the same (Event log: "All files are up-to-date") – kate springs Nov 11 '18 at 02:18
  • try "build artifacts" – SahilMak Nov 11 '18 at 02:19
  • The button isn't able to be clicked. – kate springs Nov 11 '18 at 02:21
  • Oh I see the issue. In the build.xml file indicates an Ant build (Android Studio uses Gradle by default). If there is a way to build projects in Android Studio using Ant, I don't know it. But I'm sure someone else does. Good luck! – SahilMak Nov 11 '18 at 02:31
0

think it's an Eclipse IDE (ant) project ...

you'd need to import it to Android Studio (gradle), first.

managed to build the Android.mk with ndkBuild, after importing the project.

the build.gradle looks alike:

apply plugin: 'com.android.application'

android {
    defaultConfig {
        applicationId "org.jfedor.frozenbubble"
        minSdkVersion 22
        targetSdkVersion 26
        compileSdkVersion 26
        ndk {
            moduleName "modplug-1.0"
        }
    }
    externalNativeBuild {
        ndkBuild {
            path "src/main/cpp/Android.mk"
        }
    }
    sourceSets {
        main {
            jni.srcDirs = ["src/main/cpp"]
        }
    }
    buildTypes {
        debug {
            minifyEnabled false
        }
        release {
            minifyEnabled false
        }
    }
}

that andmodplug_PlayerThread.h needs to be dropped into the libmodplug directory, where the other headers reside (the import does not copy it, because it's in a completely unexpected location). also renamed directory jni to cpp and assigned that path to the main sourceSet.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216