安装AndroidAnnotations的提示

问题描述 投票:0回答:1

我尝试在AndroidAnnotations上写。我按照指示做了所有,但是当我编译此简单代码时

import androidx.appcompat.app.AppCompatActivity;

import org.androidannotations.annotations.EActivity;


@EActivity(R.layout.activity_main)
public class MainActivity extends AppCompatActivity {

}

我有这个错误

Could not find the AndroidManifest.xml file, using  generation folder [D:\Java\Android\PNU2DietCode\app\build\generated\ap_generated_sources\debug\out])

AndroidManifest.xml中

 <application
       ...
        <activity android:name=".MainActivity_">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

和.MainActivity_未解决

摇篮

...

def AAVersion = '4.6.0'
dependencies {
    annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
    implementation "org.androidannotations:androidannotations-api:$AAVersion"

    ...
}
android android-annotations
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.