English 中文(简体)
甲型六氯环己烷和甲型六氯环己烷。 x(使用蚊帐)
原标题:Android Build Hint android.xactivity Error (using NetBeans)

我试图增加土著活动。 我这样做了。

android.xactivity = <activity android:name="com.appne.exam.NFCActivity" android:label="@string/app_name"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity>

但是,这给我带来了 Build:

    at com.android.build.gradle.internal.tasks.manifest.ManifestHelperKt.mergeManifestsForApplication(ManifestHelper.kt:83)
    ... 102 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 27; columnNumber: 1; Element type "activity" must be followed by either attribute specifications, ">" or "/>".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)

如果没有这一特殊建筑,该建筑是成功的。 我完全关闭了所有党派,确保了它们有一个单一线,没有线上断。 我失踪了吗?

Error Log line 1-20
User-level: 9000
Request Args: 
-----------------
build.incSources=1
android.xactivity=<activity android:name="com.juliocmms.exam.NFCActivity" android:label="@string/app_name" ><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity>
java.version=8
android.xpermissions=<uses-permission android:name="android.permission.NFC"/>
ios.newStorageLocation=true
-------------------
Effective build tools version = 30
Executing: 
Executing: /home/ec2-user/android-sdk/tools/android create project --target android-33 --name NFCuju --path /tmp/build595835833784802315xxx/NFCuju --activity NFCujuStub --package com.juliocmms.exam --gradle --gradle-version 4.1.1 /home/ec2-user/android-sdk/tools/android create project --target android-33 --name NFCuju --path /tmp/build595835833784802315xxx/NFCuju --activity NFCujuStub --package com.juliocmms.exam --gradle --gradle-version 4.1.1 
Executing with timeout -1
Created directory /tmp/build595835833784802315xxx/NFCuju/src/main/java
Created directory /tmp/build595835833784802315xxx/NFCuju/src/main/java
Created directory /tmp/build595835833784802315xxx/NFCuju/src/main/java/com/juliocmms/exam
Created directory /tmp/build595835833784802315xxx/NFCuju/src/main/java/com/juliocmms/exam
Added file Added file /tmp/build595835833784802315xxx/NFCuju/src/main/java/com/juliocmms/exam/NFCujuStub.java
/tmp/build595835833784802315xxx/NFCuju/src/main/java/com/juliocmms/exam/NFCujuStub.java
Created directory Created directory /tmp/build595835833784802315xxx/NFCuju/src/androidTest/java/tmp/build595835833784802315xxx/NFCuju/src/androidTest/java
........
...... line 107 - 121
      <activity android:name="NFCujuStub"
<activity android:name="com.juliocmms.exam.NFCActivity" android:label="@string/app_name" ><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter></activity> android:exported="true"                  android:theme="@style/CustomTheme"
                  android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|screenLayout"
                  android:launchMode="singleTop"
                  android:label="NFCuju">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
  <receiver android:name="com.codename1.impl.android.LocalNotificationPublisher"  android:exported="false"></receiver>
<receiver android:name="com.codename1.location.BackgroundLocationBroadcastReceiver"  android:exported="true"></receiver>
<service android:name="com.codename1.impl.android.BackgroundFetchHandler" android:exported="false" />
<activity android:name="com.codename1.impl.android.CodenameOneBackgroundFetchActivity" android:theme="@android:style/Theme.NoDisplay" />
<activity android:name="com.codename1.location.CodenameOneBackgroundLocationActivity" android:theme="@android:style/Theme.NoDisplay" />

I hope i included the right portions, its 4865 lines in all. I copied and pasted from the first activity tag to the last

问题回答

如你从生成的标识中可以看到,android.xactive 建造了护栏,没有增加额外活动,而是增加了对违约和roid活动的习俗属性。

您回顾的是,《建筑指南》(android.xapplication





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...