I'm new to android so might be missing something obvious.
I'm running af small service simulating some calls, but having trouble with the service occasionally restarting mid task. It's not always the same task, and sometimes it doesn't happen at all.
the errors produced when the service restarts:
10-13 13:49:14.469 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lcom/android/tools/fd/runtime/Server$SocketServerThread;
10-13 13:49:14.481 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService;
10-13 13:49:14.483 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/TestCase;
10-13 13:49:14.484 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lcom/android/tools/fd/runtime/IncrementalChange;
10-13 13:49:14.486 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lcom/android/tools/fd/runtime/InstantReloadException;
10-13 13:49:14.488 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/CaseInfo;
10-13 13:49:14.489 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$1;
10-13 13:49:14.489 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$2;
10-13 13:49:14.491 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/TransferHelper;
10-13 13:49:14.498 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lorg/apache/commons/io/IOUtils;
10-13 13:49:14.503 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$5;
10-13 13:49:14.504 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$6;
10-13 13:49:14.505 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$4;
10-13 13:49:14.507 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Ltest/callsimulator/SimulatorService$3;
10-13 13:49:14.510 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Landroid/support/v4/app/ActivityCompat;
10-13 13:49:14.513 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Landroid/support/v4/content/ContextCompat;
10-13 13:49:14.533 20691-20691/test.callsimulator D/CallSimulator: Sim number; 89450100140117176259
10-13 13:49:14.542 20691-20691/test.callsimulator V/HwPolicyFactory: : success to get AllImpl object and return....
10-13 13:49:14.544 20691-20691/test.callsimulator V/HwWidgetFactory: : successes to get AllImpl object and return....
10-13 13:49:14.627 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lorg/apache/commons/io/output/StringBuilderWriter;
10-13 13:49:14.632 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lorg/apache/commons/io/Charsets;
if I open the app, i get a lot more of these errors of the above kind, but they dont have any immediate effect on the app. The activity in the app does nothing more than start the service if it hasn't already been started.
I've found similar questions where the answers all seem to point towards the gradle property files, adding support libraries downloading missing packages, but their solutions hasn't worked for me.
build.gradle in app folder:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "test.callsimulator"
minSdkVersion 22
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:support-v13:24.2.1'
}
build.gradle in project folder:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
What am i missing ?