delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Link Library Fail #27

Closed kkm closed 9 years ago

kkm commented 9 years ago

Hello, I did copy from jar to libs and I got this error:

09-10 11:01:58.354: I/dalvikvm(2718): Failed resolving Lcom/example/android_ddp/MainActivity; interface 85 'Lim/delight/android/ddp/MeteorCallback;'

And

09-11 02:12:11.758: W/dalvikvm(3326): Link of class 'Lcom/example/androidddp/MainActivity;' failed

Manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.androidddp"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.androidddp.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
ocram commented 9 years ago

Don't know what might be the specific reason here, sorry. Maybe someone else can help.

Until then, please try the following things:

You're using Android Studio, right?

kkm commented 9 years ago

Android SDK was too old and it works.