[Unity3D] Missing adactivity with android.configchanges in androidmanifest.xml

광고를 붙이고 디바이스에서 돌렸더니 이런 Error가 아래와 같이 나타났습니다.


missing adactivity with android.configchanges in androidmanifest.xml



구글링 해본결과, Androidmanifest.xml에 Android Activities, meta-data tag를 제대로 추가안한게 문제였습니다.




 <!-- Denote the referenced Google Play services version -->

<meta-data android:name="com.google.android.gms.version"

        android:value="@integer/google_play_services_version" />





 <!-- Google Mobile Ads Activity -->

 <activity android:name="com.google.android.gms.ads.AdActivity"

              android:label="@string/app_name"

              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

      </activity>




해결방법은 Androidmanifest.xml에 위의 내용을 다시 추가하면 됩니다.

[Unity3D] zipalign.exe가 없다는 빌드 에러.

*****로 표시한 이유는 각자 설치해둔 안드로이드 SDK경로 또는 개발중인 유니티 프로젝트의 경로이므로 생략했습니다.


바로 아래와 같은 오류가 나타났습니다.



Error building Player: Win32Exception: ApplicationName='******sdk경로/sdk\tools\zipalign.exe', CommandLine='4 "******\Temp/StagingArea/Package_unaligned.apk" "

******\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea'



구글링을 해본결과 안드로이드 SDK가 설치되어있는 tools 폴더에  zipalign.exe파일이 없기 때문에 오류를 내는것으로 확인했습니다.


해결방법은 

안드로이드 SDK가 설치되어있는 경로\sdk\build-tools\andorid -4.4W 폴더에 있는 파일들을 복사하여

안드로이드 SDK가 설치되어있는 경로\sdk\tools에 붙여넣습니다.



[Unity3D] Failed to Wait on a semaphore (error no: 15)

Failed to Wait on a semaphore (error no: 15)



웹에서는 Shader를 찾는 코드가 필요했는데, iPad3에서는 NullReference 라고 해서 오류가 납니다.

 

#if USE_WEBPLAYER

        profileMeshRenderer.material = new Material(Shader.Find("Unlit/Texture"));

#endif

 

해결방법은 위와 같은 코드를 넣어줍니다.

[Unity3D] The referenced script on this Behaviour is missing!

Prefab 모두 괜찮은데 자꾸 에러가 났을 때!


New Scene으로 들어가서

오류가 나는 Prefab을 넣어두고 Play 시켜본다.

 

Missing이 안뜨면

 

중지 한 뒤에

Prefab - Apply 시키면 된다.